]> git.mxchange.org Git - friendica.git/blobdiff - mod/openid.php
Merge pull request #4312 from zeroadam/feature/L10n
[friendica.git] / mod / openid.php
index 613cd222f605e962301492f73f4a8d033fb9c7a7..5af209c13e072fb838358e8e4cd0dccb1e0d1686 100644 (file)
@@ -1,7 +1,10 @@
 <?php
-
+/**
+ * @file mod/openid.php
+ */
 use Friendica\App;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 
@@ -24,7 +27,7 @@ function openid_content(App $a) {
                        $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());
                        }
 
@@ -61,7 +64,7 @@ function openid_content(App $a) {
                        // New registration?
 
                        if ($a->config['register_policy'] == REGISTER_CLOSED) {
-                               notice( t('Account not found and OpenID registration is not permitted on this site.') . EOL);
+                               notice(L10n::t('Account not found and OpenID registration is not permitted on this site.') . EOL);
                                goaway(System::baseUrl());
                        }
 
@@ -111,7 +114,7 @@ function openid_content(App $a) {
                        // NOTREACHED
                }
        }
-       notice( t('Login failed.') . EOL);
+       notice(L10n::t('Login failed.') . EOL);
        goaway(System::baseUrl());
        // NOTREACHED
 }