MDL-42629 course: set a better management page title
authorSam Hemelryk <sam@moodle.com>
Thu, 31 Oct 2013 07:21:26 +0000 (15:21 +0800)
committerSam Hemelryk <sam@moodle.com>
Tue, 5 Nov 2013 01:49:14 +0000 (09:49 +0800)
course/management.php

index 301e0a5..3647eb9 100644 (file)
@@ -101,13 +101,14 @@ if ($modulelist !== '') {
     $url->param('modulelist', $search);
 }
 
+$strmanagement = new lang_string('coursecatmanagement');
 $title = format_string($SITE->fullname, true, array('context' => $systemcontext));
 
 $PAGE->set_context($context);
 $PAGE->set_url($url);
 $PAGE->set_pagelayout('admin');
 $PAGE->set_title($title);
-$PAGE->set_heading($title);
+$PAGE->set_heading($strmanagement);
 
 // This is a system level page that operates on other contexts.
 require_login();
@@ -413,7 +414,7 @@ $renderer->enhance_management_interface();
 echo $renderer->header();
 
 if (!$issearching) {
-    echo $renderer->management_heading(new lang_string('coursecatmanagement'), $viewmode, $categoryid);
+    echo $renderer->management_heading($strmanagement, $viewmode, $categoryid);
 } else {
     echo $renderer->management_heading(new lang_string('searchresults'));
 }