Commit 047547e5 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1724743: Allow pages to ignore maintenance mode"

parents 8a2d3aed ea596952
......@@ -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