]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
Many t() calls
[friendica.git] / mod / profile.php
index 081b5e3a8596f66f15ff4a995f0de1e7c22efc1a..0eec78f23b410d20209f2e5dcc3cdef6e62584f7 100644 (file)
@@ -7,6 +7,7 @@ use Friendica\Content\Widget;
 use Friendica\Content\Nav;
 use Friendica\Core\Addon;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
@@ -29,7 +30,7 @@ function profile_init(App $a)
                        goaway(System::baseUrl() . '/profile/' . $r[0]['nickname']);
                } else {
                        logger('profile error: mod_profile ' . $a->query_string, LOGGER_DEBUG);
-                       notice(t('Requested profile is not available.') . EOL);
+                       notice(L10n::t('Requested profile is not available.') . EOL);
                        $a->error = 404;
                        return;
                }
@@ -167,7 +168,7 @@ function profile_content(App $a, $update = 0)
        $last_updated_key = "profile:" . $a->profile['profile_uid'] . ":" . local_user() . ":" . remote_user();
 
        if (x($a->profile, 'hidewall') && !$is_owner && !$remote_contact) {
-               notice(t('Access to this profile has been restricted.') . EOL);
+               notice(L10n::t('Access to this profile has been restricted.') . EOL);
                return;
        }