Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 3fa6dd59e37b51bd5da4ac53ce3d35f5bce5a2c3 1 parent 1882623
moodler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/resource/type/file/resource.class.php
2  mod/resource/type/file/resource.class.php
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.