1
1
Fork 0

Merge pull request #5833 from MrPetovan/develop

Replace remaining $a->isInstallMode() instances
This commit is contained in:
Hypolite Petovan 2018-10-05 20:32:26 -04:00 committed by GitHub
commit dc49ad090e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View file

@ -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");
}

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);

View file

@ -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');
}

View file

@ -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');
}

View file

@ -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');
}

View file

@ -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');
}

View file

@ -50,7 +50,7 @@ HELP;
return 0;
}
if ($a->isInstallMode()) {
if (App\Mode::isInstall()) {
throw new \RuntimeException('Database isn\'t ready or populated yet');
}