MDL-46269 tool_httpsreplace: Make tool ready for core
Remove known domains add config for renames Fix coding style Add capability checks Add page setters Match moodle string style Disable form change checker for form Add todo issue Fix docs Bump version
This commit is contained in:
committed by
Marina Glancy
parent
836226c4ad
commit
7821d93aa6
@@ -24,12 +24,22 @@
|
||||
|
||||
define('NO_OUTPUT_BUFFERING', true);
|
||||
|
||||
require_once('../../../config.php');
|
||||
require_once($CFG->dirroot.'/course/lib.php');
|
||||
require_once($CFG->libdir.'/adminlib.php');
|
||||
require_once(__DIR__ . '/../../../config.php');
|
||||
require_once($CFG->dirroot . '/course/lib.php');
|
||||
require_once($CFG->libdir . '/adminlib.php');
|
||||
|
||||
admin_externalpage_setup('toolhttpsreplace');
|
||||
|
||||
$context = context_system::instance();
|
||||
|
||||
require_login();
|
||||
require_capability('moodle/site:config', $context);
|
||||
|
||||
$PAGE->set_context($context);
|
||||
$PAGE->set_url(new moodle_url('/admin/tool/httpsreplace/index.php'));
|
||||
$PAGE->set_title(get_string('pageheader', 'tool_httpsreplace'));
|
||||
$PAGE->set_pagelayout('admin');
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
echo $OUTPUT->heading(get_string('pageheader', 'tool_httpsreplace'));
|
||||
|
||||
Reference in New Issue
Block a user