MDL-33061 - lib - Replacement of get_context_instance with the new function call (group 3)

This commit is contained in:
Adrian Greeve 2012-07-24 09:52:41 +08:00
parent 147dc9dafd
commit 41b3836067
9 changed files with 74 additions and 74 deletions

View file

@ -29,7 +29,7 @@ require_once('../config.php');
require_once('lib.php');
require_login();
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
$PAGE->set_context($context);
$PAGE->set_url(new moodle_url('/blog/external_blogs.php'));
require_capability('moodle/blog:manageexternal', $context);