X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fopenid.php;h=63b29684b3c5eded4a1fa651470a76ee192dc8b5;hb=45748da8a1d0580e5f1cd81c34ec3b807ed8ea3b;hp=613cd222f605e962301492f73f4a8d033fb9c7a7;hpb=f983712269ef9160d922363c0b3f760dc0662338;p=friendica.git diff --git a/mod/openid.php b/mod/openid.php index 613cd222f6..63b29684b3 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -1,11 +1,13 @@ getHostName()); if($openid->validate()) { $authid = $_REQUEST['openid_identity']; if(! strlen($authid)) { - logger( t('OpenID protocol error. No ID returned.') . EOL); + logger(L10n::t('OpenID protocol error. No ID returned.') . EOL); goaway(System::baseUrl()); } @@ -39,10 +41,10 @@ function openid_content(App $a) { AND `blocked` = 0 AND `account_expired` = 0 AND `account_removed` = 0 AND `verified` = 1 LIMIT 1", - dbesc($authid), dbesc(normalise_openid($authid)) + DBA::escape($authid), DBA::escape(normalise_openid($authid)) ); - if (DBM::is_result($r)) { + if (DBA::isResult($r)) { // successful OpenID login @@ -60,8 +62,8 @@ function openid_content(App $a) { // Successful OpenID login - but we can't match it to an existing account. // New registration? - if ($a->config['register_policy'] == REGISTER_CLOSED) { - notice( t('Account not found and OpenID registration is not permitted on this site.') . EOL); + if (intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED) { + notice(L10n::t('Account not found and OpenID registration is not permitted on this site.') . EOL); goaway(System::baseUrl()); } @@ -111,7 +113,7 @@ function openid_content(App $a) { // NOTREACHED } } - notice( t('Login failed.') . EOL); + notice(L10n::t('Login failed.') . EOL); goaway(System::baseUrl()); // NOTREACHED }