MDL-58439 admin: Fix missing page context.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
ae321ea8fc
commit
f7203861d5
@@ -31,6 +31,7 @@ $return = optional_param('return','', PARAM_ALPHA);
|
||||
$adminediting = optional_param('adminedit', -1, PARAM_BOOL);
|
||||
|
||||
require_admin();
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->set_url('/admin/category.php', array('category' => $category));
|
||||
$PAGE->set_pagetype('admin-setting-' . $category);
|
||||
$PAGE->set_pagelayout('admin');
|
||||
|
||||
Reference in New Issue
Block a user