mirror of
https://github.com/moodle/moodle.git
synced 2025-01-30 03:58:34 +01:00
small bug fix: $USER was not laoded in course admin block
This commit is contained in:
parent
893a32463b
commit
9cb883d53d
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user