mirror of
https://github.com/moodle/moodle.git
synced 2025-07-19 05:11:33 +02:00
MDL-46269 tool_httpsreplace: Make standard plugin & add to settings
This commit is contained in:
committed by
Marina Glancy
parent
e3b853a79f
commit
f7e6fb04db
@@ -28,5 +28,15 @@ if ($hassiteconfig) {
|
||||
|
||||
$pluginname = get_string('pluginname', 'tool_httpsreplace');
|
||||
$url = $CFG->wwwroot.'/'.$CFG->admin.'/tool/httpsreplace/index.php';
|
||||
$ADMIN->add('security', new admin_externalpage('toolhttpsreplace', $pluginname, $url, 'moodle/site:config'));
|
||||
$ADMIN->add('security', new admin_externalpage('toolhttpsreplace', $pluginname, $url, 'moodle/site:config', true));
|
||||
|
||||
$httpsreplaceurl = $CFG->wwwroot.'/'.$CFG->admin.'/tool/httpsreplace/index.php';
|
||||
$ADMIN->locate('httpsecurity')->add(
|
||||
new admin_setting_heading(
|
||||
'tool_httpsreplaceheader',
|
||||
new lang_string('pluginname', 'tool_httpsreplace'),
|
||||
new lang_string('toolintro', 'tool_httpsreplace', $httpsreplaceurl)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user