Browse Source

Replace remaining $a->isInstallMode() instances

pull/5833/head
Hypolite Petovan 3 years ago
parent
commit
3ed9e7fe1d
7 changed files with 8 additions and 8 deletions
  1. +1
    -1
      bin/daemon.php
  2. +2
    -2
      index.php
  3. +1
    -1
      src/Core/Console/GlobalCommunityBlock.php
  4. +1
    -1
      src/Core/Console/GlobalCommunitySilence.php
  5. +1
    -1
      src/Core/Console/Maintenance.php
  6. +1
    -1
      src/Core/Console/NewPassword.php
  7. +1
    -1
      src/Core/Console/PostUpdate.php

+ 1
- 1
bin/daemon.php 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");
}


+ 2
- 2
index.php 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);


+ 1
- 1
src/Core/Console/GlobalCommunityBlock.php 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');
}


+ 1
- 1
src/Core/Console/GlobalCommunitySilence.php 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');
}


+ 1
- 1
src/Core/Console/Maintenance.php 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');
}


+ 1
- 1
src/Core/Console/NewPassword.php 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');
}


+ 1
- 1
src/Core/Console/PostUpdate.php 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');
}


Loading…
Cancel
Save