From: gustav_delius Date: Wed, 9 Jun 2004 22:00:51 +0000 (+0000) Subject: small bug fix: $USER was not laoded in course admin block X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9cb883d53d225fcab9b93be057e5edc2220503c3;p=moodle.git small bug fix: $USER was not laoded in course admin block --- diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index 8eb6a9f97d..8991949278 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -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()) {