]> 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 4f687ad9b4e6909897755506018932983f03ea3e..54d10af2077768edf4735a787efd3175ab6b9ef9 100644 (file)
@@ -57,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 (!DBA::is_result($user)) {
+               if (!DBA::isResult($user)) {
                        throw new RuntimeException(L10n::t('User not found'));
                }