mirror of
https://github.com/friendica/friendica
synced 2024-12-22 17:20:16 +00:00
Replace remaining $a->isInstallMode() instances
This commit is contained in:
parent
3564daf24d
commit
3ed9e7fe1d
7 changed files with 8 additions and 8 deletions
|
@ -34,7 +34,7 @@ require_once "include/dba.php";
|
|||
|
||||
$a = new App(dirname(__DIR__));
|
||||
|
||||
if ($a->isInstallMode()) {
|
||||
if (App\Mode::isInstall()) {
|
||||
die("Friendica isn't properly installed yet.\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -56,7 +56,7 @@ HELP;
|
|||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
if ($a->isInstallMode()) {
|
||||
if (App\Mode::isInstall()) {
|
||||
throw new \RuntimeException('Database isn\'t ready or populated yet');
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ HELP;
|
|||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
if ($a->isInstallMode()) {
|
||||
if (App\Mode::isInstall()) {
|
||||
throw new RuntimeException('Database isn\'t ready or populated yet');
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ HELP;
|
|||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
if ($a->isInstallMode()) {
|
||||
if (App\Mode::isInstall()) {
|
||||
throw new \RuntimeException('Database isn\'t ready or populated yet');
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ HELP;
|
|||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
if ($a->isInstallMode()) {
|
||||
if (App\Mode::isInstall()) {
|
||||
throw new RuntimeException('Database isn\'t ready or populated yet');
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ HELP;
|
|||
return 0;
|
||||
}
|
||||
|
||||
if ($a->isInstallMode()) {
|
||||
if (App\Mode::isInstall()) {
|
||||
throw new \RuntimeException('Database isn\'t ready or populated yet');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue