1
0
Fork 0

Replace remaining $a->isInstallMode() instances

This commit is contained in:
Hypolite Petovan 2018-10-05 20:31:32 -04:00
commit 3ed9e7fe1d
7 changed files with 8 additions and 8 deletions

View file

@ -165,9 +165,9 @@ $_SESSION['last_updated'] = defaults($_SESSION, 'last_updated', []);
// in install mode, any url loads install module
// but we need "view" module for stylesheet
if ($a->isInstallMode() && $a->module!="view") {
if (App\Mode::isInstall() && $a->module != 'view') {
$a->module = 'install';
} elseif (!App\Mode::has(App\Mode::MAINTENANCEDISABLED) && $a->module != "view") {
} elseif (!App\Mode::has(App\Mode::MAINTENANCEDISABLED) && $a->module != 'view') {
$a->module = 'maintenance';
} else {
check_url($a);