Commit ea596952 authored by Robert Lyon's avatar Robert Lyon

Bug 1724743: Allow pages to ignore maintenance mode

by defining IGNOREMAINTENANCE in the php file

Useful to allow certain public pages to still be accessible to outside
world, eg the SAML metadata

behatnotneeded

Change-Id: If5e5e7520917c3128571537c5d50ed3fdd4add04
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 95aada8c
......@@ -30,6 +30,7 @@
define('INTERNAL', 1);
define('PUBLIC', 1);
define('IGNOREMAINTENANCE', 1);
define('XMLRPC', 1);
define('TITLE', '');
global $CFG, $USER, $SESSION;
......
......@@ -412,7 +412,7 @@ if ($siteclosedforupgrade || (get_config('siteclosedbyadmin') && !$USER->admin))
if (defined('CLI') && !defined('INSTALLER')) {
exit("Site closed.\n");
}
if (!defined('HOME') && !defined('INSTALLER')) {
if (!defined('HOME') && !defined('INSTALLER') && !defined('IGNOREMAINTENANCE')) {
redirect();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment