X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole%2FPostUpdate.php;h=103d0fef7e68062928cdfd79100234a8dfd0187d;hb=3aa77685fcccff9739384136b4894de43200fa8c;hp=a77aae39de58a7891eab17de70e31ad01d66e8ff;hpb=3b41535dfe9d8285264ebae2c2c111a359e7288a;p=friendica.git diff --git a/src/Core/Console/PostUpdate.php b/src/Core/Console/PostUpdate.php index a77aae39de..103d0fef7e 100644 --- a/src/Core/Console/PostUpdate.php +++ b/src/Core/Console/PostUpdate.php @@ -2,8 +2,9 @@ namespace Friendica\Core\Console; -use Friendica\Core\L10n; use Friendica\Core\Config; +use Friendica\Core\L10n; +use Friendica\Core\Update; /** * Performs database post updates @@ -33,7 +34,7 @@ HELP; protected function doExecute() { - $a = get_app(); + $a = \Friendica\BaseObject::getApp(); if ($this->getOption($this->helpOptions)) { $this->out($this->getHelp()); @@ -50,10 +51,14 @@ HELP; return 0; } - if (App\Mode::isInstall()) { + if ($a->getMode()->isInstall()) { throw new \RuntimeException('Database isn\'t ready or populated yet'); } + echo L10n::t('Check for pending update actions.') . "\n"; + Update::run($a->getBasePath(), true, true, false); + echo L10n::t('Done.') . "\n"; + echo L10n::t('Execute pending post updates.') . "\n"; while (!\Friendica\Database\PostUpdate::update()) {