]> git.mjollnir.org Git - moodle.git/commitdiff
fixed missing courseid in breadcrumbs
authorgustav_delius <gustav_delius>
Wed, 19 Jan 2005 08:11:49 +0000 (08:11 +0000)
committergustav_delius <gustav_delius>
Wed, 19 Jan 2005 08:11:49 +0000 (08:11 +0000)
mod/quiz/category.php

index 21167b37428a5303bf699c8d8accc8f36f1b91ff..a85bb0784792a6fcdd6caeea8bffae7e4d668917 100644 (file)
         error("Only teachers authorized to edit the course '{$course->fullname}' can use this page!");
     }
     
+    /// Header:
+    print_header_simple(get_string('editcategories', 'quiz'), '',
+                 "<a href=\"index.php?id=$course->id\">".get_string('modulenameplural', 'quiz').'</a>'.
+                 ' -> '.get_string('editcategories', 'quiz'));
+    
     /// CHECK FOR AND ACT UPON VARIABLES SUBMITTED VIA GET OR POST
     $qcobject = new quiz_category_object();
     $qcobject->set_course($course);
@@ -118,11 +123,6 @@ class quiz_category_object {
         $this->str->editcategories = get_string('editcategories', 'quiz');
         $this->pixpath = $CFG->pixpath;
 
-        /// Header:
-        print_header_simple($this->str->editcategories, '',
-                 "<a href=\"index.php?id=$this->course->id\">".get_string('modulenameplural', 'quiz').'</a>'.
-                 " -> {$this->str->editcategories}");
-
     }
 
 /**