Permalink
Browse files

Merge branch 'MDL-31330_21' of git://github.com/stronk7/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents ed33293 + 7050528 commit 7a79813152b36412fc265ee8b301b16271fee18c Sam Hemelryk committed Jan 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/enrol.php
View
@@ -31,7 +31,7 @@
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/enrol.php');
-$PAGE->set_context(context_system::instance());
+$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
@@ -119,4 +119,4 @@
}
-redirect($return);
+redirect($return);

0 comments on commit 7a79813

Please sign in to comment.