Issue #85 - Only remove additionalhtml if in the appropriate settings section.

This commit is contained in:
Daniel Thee Roperto
2016-12-14 11:25:44 +11:00
parent 7946dccd5e
commit 38b1b5fe72
2 changed files with 34 additions and 4 deletions

View File

@@ -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.