]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/theme.php
@brief is removed completely
[friendica.git] / view / theme / vier / theme.php
index 02aac5b6488d5898636b4b8de50e2b3d0f4b5579..e7318902a623e7156f6ab264980a178768d048d3 100644 (file)
@@ -14,9 +14,8 @@ use Friendica\Content\ForumManager;
 use Friendica\Core\Addon;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
-use Friendica\Core\PConfig;
 use Friendica\Core\Renderer;
-use Friendica\Core\System;
+use Friendica\Core\Search;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Contact;
@@ -91,7 +90,7 @@ EOT;
 function get_vier_config($key, $default = false, $admin = false)
 {
        if (local_user() && !$admin) {
-               $result = PConfig::get(local_user(), "vier", $key);
+               $result = DI::pConfig()->get(local_user(), "vier", $key);
                if (!is_null($result)) {
                        return $result;
                }
@@ -107,7 +106,7 @@ function get_vier_config($key, $default = false, $admin = false)
 
 function vier_community_info()
 {
-       $a = \get_app();
+       $a = DI::app();
 
        $show_pages      = get_vier_config("show_pages", 1);
        $show_profiles   = get_vier_config("show_profiles", 1);
@@ -117,7 +116,7 @@ function vier_community_info()
        $show_lastusers  = get_vier_config("show_lastusers", 1);
 
        // get_baseurl
-       $url = System::baseUrl();
+       $url = DI::baseUrl();
        $aside['$url'] = $url;
 
        // comunity_profiles
@@ -184,7 +183,7 @@ function vier_community_info()
                $nv['random'] = L10n::t('Random Profile');
                $nv['inv'] = L10n::t('Invite Friends');
                $nv['directory'] = L10n::t('Global Directory');
-               $nv['global_dir'] = get_server();
+               $nv['global_dir'] = Search::getGlobalDirectory();
                $nv['local_directory'] = L10n::t('Local Directory');
 
                $aside['$nv'] = $nv;
@@ -213,7 +212,7 @@ function vier_community_info()
                                        'name'         => $contact['name'],
                                        'cid'          => $contact['id'],
                                        'selected'     => $selected,
-                                       'micro'        => System::removedBaseUrl(ProxyUtils::proxifyUrl($contact['micro'], false, ProxyUtils::SIZE_MICRO)),
+                                       'micro'        => DI::baseUrl()->remove(ProxyUtils::proxifyUrl($contact['micro'], false, ProxyUtils::SIZE_MICRO)),
                                        'id'           => ++$id,
                                ];
                                $entries[] = $entry;