From 3fa6dd59e37b51bd5da4ac53ce3d35f5bce5a2c3 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 27 Nov 2004 16:03:37 +0000 Subject: [PATCH] Tiny hack to make $course work OK in file resources (print_header) Should be replaced with proper global $COURSE in 1.5 --- mod/resource/type/file/resource.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index 15c038b2490..995721a1e3b 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -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();