mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #85 - Only remove additionalhtml if in the appropriate settings section.
This commit is contained in:
@@ -189,7 +189,9 @@ class outagelib {
|
||||
|
||||
// Do not inject into admin/settings.php.
|
||||
if ($_SERVER['SCRIPT_NAME'] == '/'.$CFG->admin.'/settings.php') {
|
||||
return false;
|
||||
if (optional_param('section', '', PARAM_RAW) === 'additionalhtml') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Check if warning bar should be hidden.
|
||||
|
||||
Reference in New Issue
Block a user