]> git.mxchange.org Git - friendica.git/blobdiff - mod/uimport.php
Many t() calls
[friendica.git] / mod / uimport.php
index 8516613410a00884eeff267843094ec5820890a7..14e56c30c2c4f7ed3cb29e0b99747be9eda88959 100644 (file)
@@ -6,6 +6,7 @@
 
 use Friendica\App;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\UserImport;
 
 function uimport_post(App $a) {
@@ -23,7 +24,7 @@ function uimport_post(App $a) {
                default:
                case REGISTER_CLOSED:
                        if ((!x($_SESSION, 'authenticated') && (!x($_SESSION, 'administrator')))) {
-                               notice(t('Permission denied.') . EOL);
+                               notice(L10n::t('Permission denied.') . EOL);
                                return;
                        }
                        $blocked = 1;
@@ -50,7 +51,7 @@ function uimport_content(App $a) {
                $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day");
                if ($r && $r[0]['total'] >= $max_dailies) {
                        logger('max daily registrations exceeded.');
-                       notice(t('This site has exceeded the number of allowed daily account registrations. Please try again tomorrow.') . EOL);
+                       notice(L10n::t('This site has exceeded the number of allowed daily account registrations. Please try again tomorrow.') . EOL);
                        return;
                }
        }