mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #22 - Adding parameter to hide warning bar to be used when baking page.
This commit is contained in:
@@ -71,6 +71,11 @@ class outagelib {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if warning bar should be hidden.
|
||||
if (optional_param('auth_outage_hide_warning', false, PARAM_BOOL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Used to test the try block in case of errors.
|
||||
if (PHPUNIT_TEST && optional_param('auth_outage_break_code', false, PARAM_INT)) {
|
||||
(new stdClass())->invalidfield;
|
||||
|
||||
Reference in New Issue
Block a user