]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/GlobalCommunityBlock.php
Merge branch '2019.01-rc' into bug/6334-escape-get-app
[friendica.git] / src / Core / Console / GlobalCommunityBlock.php
index f51ed95fe2b4f49d93406317dca55d47c6e7eb3e..d11aa6cf86ee0170be1f5a14fe007668739c7495 100644 (file)
@@ -39,7 +39,7 @@ HELP;
 
        protected function doExecute()
        {
-               $a = get_app();
+               $a = \get_app();
 
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
@@ -56,7 +56,7 @@ HELP;
                        throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
                }
 
-               if ($a->isInstallMode()) {
+               if ($a->getMode()->isInstall()) {
                        throw new \RuntimeException('Database isn\'t ready or populated yet');
                }