Skip to content

Commit

Permalink
Use $this->page instead of $PAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
justusdieckmann committed Jan 11, 2024
1 parent 2cb411b commit be33e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block_opencast.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)]);
}
}
Expand Down

0 comments on commit be33e22

Please sign in to comment.