]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/NewPassword.php
Add missing L10n::popLang calls
[friendica.git] / src / Core / Console / NewPassword.php
index 6a00e34887bfc8fe5cb2104efd6840bceeaba69e..54d10af2077768edf4735a787efd3175ab6b9ef9 100644 (file)
@@ -5,7 +5,6 @@ namespace Friendica\Core\Console;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Database\DBA;
-use Friendica\Database\DBM;
 use Friendica\Model\User;
 use RuntimeException;
 
@@ -58,14 +57,14 @@ 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');
                }
 
                $nick = $this->getArgument(0);
 
                $user = DBA::selectFirst('user', ['uid'], ['nickname' => $nick]);
-               if (!DBM::is_result($user)) {
+               if (!DBA::isResult($user)) {
                        throw new RuntimeException(L10n::t('User not found'));
                }