]> git.mjollnir.org Git - moodle.git/commitdiff
small bug fix: $USER was not laoded in course admin block
authorgustav_delius <gustav_delius>
Wed, 9 Jun 2004 22:00:51 +0000 (22:00 +0000)
committergustav_delius <gustav_delius>
Wed, 9 Jun 2004 22:00:51 +0000 (22:00 +0000)
blocks/admin/block_admin.php

index 8eb6a9f97d27e844886cb37d412e7d2836782677..89919492783719f663432dc4cdabc3d2921b7d4f 100644 (file)
@@ -13,7 +13,6 @@ class CourseBlock_admin extends MoodleBlock {
     }
 
     function get_content() {
-        global $USER, $CFG, $THEME;
 
         if($this->content !== NULL) {
             return $this->content;
@@ -67,7 +66,7 @@ class CourseBlock_admin extends MoodleBlock {
     }
 
     function load_content_for_course() {
-        global $CFG;
+        global $CFG, $USER;
         require_once($CFG->dirroot.'/mod/forum/lib.php');
 
         if (isguest()) {