Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…OODLE_21_STABLE
  • Loading branch information...
commit 7a79813152b36412fc265ee8b301b16271fee18c 2 parents ed33293 + 7050528
@samhemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/enrol.php
View
4 admin/enrol.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.