]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14916:
authorthepurpleblob <thepurpleblob>
Wed, 21 May 2008 12:47:35 +0000 (12:47 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 21 May 2008 12:47:35 +0000 (12:47 +0000)
Tidy up notices

Merged from STABLE_19

course/index.php

index df2cdc4bbcc5259d979ba4ea1ad58da514b12ea7..226cffe52a6feec30b458773ea687bf27017e24c 100644 (file)
@@ -422,13 +422,14 @@ function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $
 
 function print_category_edit_header() {
     global $CFG;
+    global $SITE;
 
     if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
         require_once($CFG->libdir.'/adminlib.php');
         admin_externalpage_setup('coursemgmt');
         admin_externalpage_print_header();
     } else {
-        print_header("$site->shortname: $strcategories", get_string('courses'),
+        print_header("$SITE->shortname:". get_string('categories'), get_string('courses'),
             build_navigation(array(array('name'=>get_string('categories'),'link'=>'','type'=>'misc'))), '', '', true, update_categories_button());
     }
 }