]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/ArchiveContact.php
Merge remote-tracking branch 'upstream/master' into develop
[friendica.git] / src / Core / Console / ArchiveContact.php
index acdacbed1de9ac57b6bf2024a08855db51ba97bb..481037a5f6a2d6e6696461f0e85bb45400002964 100644 (file)
@@ -39,7 +39,7 @@ HELP;
 
        protected function doExecute()
        {
-               $a = get_app();
+               $a = \Friendica\BaseObject::getApp();
 
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
@@ -56,7 +56,7 @@ HELP;
                        throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
                }
 
-               if ($a->mode === App::MODE_INSTALL) {
+               if ($a->getMode()->isInstall()) {
                        throw new RuntimeException('Friendica isn\'t properly installed yet.');
                }