Skip to content
Snippets Groups Projects
Commit 8acd42ab authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Added correct heading to active processes page

parent b5082221
Branches
Tags
No related merge requests found
......@@ -34,8 +34,8 @@ $PAGE->set_url(new \moodle_url('/admin/tool/cleanupcourses/activeprocesses.php')
$table = new tool_cleanupcourses\table\active_processes_table('tool_cleanupcourses_active_processes');
$PAGE->set_title("Title");
$PAGE->set_heading("Heading");
$PAGE->set_title(get_string('active_processes_list_header', 'tool_cleanupcourses'));
$PAGE->set_heading(get_string('active_processes_list_header', 'tool_cleanupcourses'));
$renderer = $PAGE->get_renderer('tool_cleanupcourses');
......
......@@ -30,7 +30,7 @@ class tool_cleanupcourses_renderer extends plugin_renderer_base {
*
* @return string
*/
public function render_footer() {
public function footer() {
global $OUTPUT;
echo $OUTPUT->footer();
}
......@@ -40,9 +40,10 @@ class tool_cleanupcourses_renderer extends plugin_renderer_base {
*
* @return string
*/
public function render_header() {
global $OUTPUT;
public function header() {
global $OUTPUT, $PAGE;
echo $OUTPUT->header();
echo $OUTPUT->heading($PAGE->heading);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment