From be33e220d8e49add44d80e07c676ab8365d4497e Mon Sep 17 00:00:00 2001 From: Justus Dieckmann Date: Thu, 11 Jan 2024 19:25:18 +0100 Subject: [PATCH] Use $this->page instead of $PAGE --- block_opencast.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block_opencast.php b/block_opencast.php index 40969a43..90f95a34 100644 --- a/block_opencast.php +++ b/block_opencast.php @@ -199,7 +199,7 @@ public function instance_create() { * @return block_contents a representation of the block, for rendering. */ public function get_content_for_output($output) { - global $COURSE, $PAGE; + global $COURSE; // Get the block_contents object from parent class. $bc = parent::get_content_for_output($output); @@ -238,7 +238,7 @@ public function get_content_for_output($output) { 'bui_confirm' => 1, 'sesskey' => sesskey() ]); - $PAGE->requires->js_call_amd('block_opencast/block_delete_handler', 'init', + $this->page->requires->js_call_amd('block_opencast/block_delete_handler', 'init', [$this->context->id, $deleteurl->out(false)]); } }