Skip to content

Commit

Permalink
"MDL-14589 added set_context to files/index.php script"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Jul 26, 2010
1 parent 2a576f9 commit 93ad2d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
}

list($context, $course, $cm) = get_context_info_array($contextid);
$PAGE->set_context($context);

require_login($course, false, $cm);
require_capability('moodle/course:managefiles', $context);
Expand Down

0 comments on commit 93ad2d4

Please sign in to comment.