Skip to content
Snippets Groups Projects
Commit f889c1b7 authored by Ere Maijala's avatar Ere Maijala Committed by Robert Lange
Browse files

Prevent maintenance mode from affecting CLI tools. (#1504)

parent 49f37919
Branches
Tags
No related merge requests found
......@@ -155,10 +155,9 @@ class Bootstrapper
*/
protected function initSystemStatus()
{
// If the system is unavailable, forward to a different place:
if (isset($this->config->System->available)
&& !$this->config->System->available
) {
// If the system is unavailable and we're not in the console, forward to the
// unavailable page.
if (!Console::isConsole() && !($this->config->System->available ?? true)) {
$callback = function ($e) {
$routeMatch = new RouteMatch(
['controller' => 'Error', 'action' => 'Unavailable'], 1
......
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