Browse files

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

Should be replaced with proper global $COURSE in 1.5
  • Loading branch information...
1 parent 1882623 commit 3fa6dd59e37b51bd5da4ac53ce3d35f5bce5a2c3 moodler committed Nov 27, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/resource/type/file/resource.class.php
View
2 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();

0 comments on commit 3fa6dd5

Please sign in to comment.