]> git.mxchange.org Git - friendica.git/blobdiff - mod/profperm.php
Many t() calls
[friendica.git] / mod / profperm.php
index 015260d54d356b6ebd47ff69c3beacc83b862ca6..68c3fa25ae3557377783703658d9d8022b2cb366 100644 (file)
@@ -4,6 +4,7 @@
  */
 use Friendica\App;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Database\DBM;
 use Friendica\Model\Profile;
@@ -24,13 +25,13 @@ function profperm_init(App $a)
 function profperm_content(App $a) {
 
        if (! local_user()) {
-               notice( t('Permission denied') . EOL);
+               notice(L10n::t('Permission denied') . EOL);
                return;
        }
 
 
        if($a->argc < 2) {
-               notice( t('Invalid profile identifier.') . EOL );
+               notice(L10n::t('Invalid profile identifier.') . EOL );
                return;
        }
 
@@ -59,7 +60,7 @@ function profperm_content(App $a) {
                        intval(local_user())
                );
                if (! DBM::is_result($r)) {
-                       notice( t('Invalid profile identifier.') . EOL );
+                       notice(L10n::t('Invalid profile identifier.') . EOL );
                        return;
                }
                $profile = $r[0];