Skip to content
Snippets Groups Projects
Commit 09940e45 authored by Justus Dieckmann's avatar Justus Dieckmann Committed by Tobias Reischmann
Browse files

Use $this->output/page instead of globals in renderer

parent faf8b52b
Branches
Tags
No related merge requests found
...@@ -36,8 +36,7 @@ class tool_lifecycle_renderer extends plugin_renderer_base { ...@@ -36,8 +36,7 @@ class tool_lifecycle_renderer extends plugin_renderer_base {
* Write the page footer * Write the page footer
*/ */
public function footer() { public function footer() {
global $OUTPUT; echo $this->output->footer();
echo $OUTPUT->footer();
} }
/** /**
...@@ -46,12 +45,11 @@ class tool_lifecycle_renderer extends plugin_renderer_base { ...@@ -46,12 +45,11 @@ class tool_lifecycle_renderer extends plugin_renderer_base {
* @param string $title optional page title. * @param string $title optional page title.
*/ */
public function header($title = null) { public function header($title = null) {
global $OUTPUT, $PAGE; echo $this->output->header();
echo $OUTPUT->header();
if ($title) { if ($title) {
echo $OUTPUT->heading($title); echo $this->output->heading($title);
} else { } else {
echo $OUTPUT->heading($PAGE->heading); echo $this->output->heading($this->page->heading);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment