X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fuimport.php;h=14e56c30c2c4f7ed3cb29e0b99747be9eda88959;hb=d49f986d1eb6894dd948577288357b6c1755e3d3;hp=8516613410a00884eeff267843094ec5820890a7;hpb=39ff6e9ce9251fe69b56ba05ea7bdc1896f34de2;p=friendica.git diff --git a/mod/uimport.php b/mod/uimport.php index 8516613410..14e56c30c2 100644 --- a/mod/uimport.php +++ b/mod/uimport.php @@ -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; } }