]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Many t() calls
[friendica.git] / src / Model / Profile.php
index b47a53c9e9579f2a5dd5d50b325294ccfd0e7a4b..562ff06f81cfc038805a6703cc09f66aab086fa4 100644 (file)
@@ -8,8 +8,10 @@ namespace Friendica\Model;
 use Friendica\App;
 use Friendica\Content\Feature;
 use Friendica\Content\ForumManager;
+use Friendica\Core\Addon;
 use Friendica\Core\Cache;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
@@ -90,7 +92,7 @@ class Profile
 
                if (!$user && !count($user) && !count($profiledata)) {
                        logger('profile error: ' . $a->query_string, LOGGER_DEBUG);
-                       notice(t('Requested account is not available.') . EOL);
+                       notice(L10n::t('Requested account is not available.') . EOL);
                        $a->error = 404;
                        return;
                }
@@ -111,7 +113,7 @@ class Profile
 
                if (empty($pdata) && empty($profiledata)) {
                        logger('profile error: ' . $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;
                }
@@ -286,7 +288,7 @@ class Profile
                        $profile['network_name'] = '';
                }
 
-               call_hooks('profile_sidebar_enter', $profile);
+               Addon::callHooks('profile_sidebar_enter', $profile);
 
 
                // don't show connect link to yourself
@@ -520,7 +522,7 @@ class Profile
 
                $arr = ['profile' => &$profile, 'entry' => &$o];
 
-               call_hooks('profile_sidebar', $arr);
+               Addon::callHooks('profile_sidebar', $arr);
 
                return $o;
        }
@@ -939,7 +941,7 @@ class Profile
                }
 
                $arr = ['is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => $tab, 'tabs' => $tabs];
-               call_hooks('profile_tabs', $arr);
+               Addon::callHooks('profile_tabs', $arr);
 
                $tpl = get_markup_template('common_tabs.tpl');
 
@@ -976,7 +978,7 @@ class Profile
 
                        Worker::add(PRIORITY_LOW, 'GProbe', $my_url);
                        $arr = ['zrl' => $my_url, 'url' => $a->cmd];
-                       call_hooks('zrl_init', $arr);
+                       Addon::callHooks('zrl_init', $arr);
                }
        }