$a = new App(dirname(__DIR__));
-if ($a->isInstallMode()) {
+if (App\Mode::isInstall()) {
die("Friendica isn't properly installed yet.\n");
}
// 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);
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');
}
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');
}
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');
}
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');
}
return 0;
}
- if ($a->isInstallMode()) {
+ if (App\Mode::isInstall()) {
throw new \RuntimeException('Database isn\'t ready or populated yet');
}