Issue #22 - Adding parameter to hide warning bar to be used when baking page.

This commit is contained in:
Daniel Thee Roperto committed 2016-11-08 14:03:24 +11:00
1 parent deb6d87e72
commit e6921d6649
2 files changed
+17

No files matched your search

+5
View File
@@ -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;