X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FPostUpdate.php;h=42cc63e109db64c99164bb179f32ef5b041c976b;hb=d4a5a8051ad34a7be72238967afb3e6b140afdc8;hp=d0f1da08ebcd8d276a8f5340f0d8b2f4ebadc24f;hpb=58eea1adaa185acdfdd420783ded92f908813209;p=friendica.git diff --git a/src/Console/PostUpdate.php b/src/Console/PostUpdate.php index d0f1da08eb..42cc63e109 100644 --- a/src/Console/PostUpdate.php +++ b/src/Console/PostUpdate.php @@ -1,6 +1,6 @@ appMode = $appMode; - $this->config = $config; - $this->l10n = $l10n; + $this->appMode = $appMode; + $this->keyValue = $keyValue; + $this->l10n = $l10n; } - protected function doExecute() + protected function doExecute(): int { $a = \Friendica\DI::app(); @@ -83,7 +83,7 @@ HELP; $this->out($this->getHelp()); return 0; } elseif ($reset_version) { - $this->config->set('system', 'post_update_version', $reset_version); + $this->keyValue->set('post_update_version', $reset_version); echo $this->l10n->t('Post update version number has been set to %s.', $reset_version) . "\n"; return 0; }