Tiny hack to make $course work OK in file resources (print_header)

Should be replaced with proper global $COURSE in 1.5
This commit is contained in:
moodler
2004-11-27 16:03:37 +00:00
parent 18826234c3
commit 3fa6dd59e3
+1 -1
View File
@@ -178,7 +178,7 @@ function update_instance($resource) {
* @param THEME global object
*/
function display() {
global $CFG, $THEME;
global $CFG, $THEME, $course;
/// Set up generic stuff first, including checking for access
parent::display();