]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Fix: unknown variable
[friendica.git] / src / Model / Profile.php
index bb19fbe9b75b8b096cac47f4f63bc240f27b4ad0..341727ceef4f6c84427705f4bcf03faa8ab988da 100644 (file)
@@ -11,9 +11,7 @@ use Friendica\Content\Text\BBCode;
 use Friendica\Content\Text\HTML;
 use Friendica\Content\Widget\ContactBlock;
 use Friendica\Core\Cache\Duration;
-use Friendica\Core\Config;
 use Friendica\Core\Hook;
-use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
@@ -184,7 +182,7 @@ class Profile
                $a->profile['mobile-theme'] = DI::pConfig()->get($a->profile['profile_uid'], 'system', 'mobile_theme');
                $a->profile['network'] = Protocol::DFRN;
 
-               DI::page()['title'] = $a->profile['name'] . ' @ ' . Config::get('config', 'sitename');
+               DI::page()['title'] = $a->profile['name'] . ' @ ' . DI::config()->get('config', 'sitename');
 
                if (!$profiledata && !DI::pConfig()->get(local_user(), 'system', 'always_my_theme')) {
                        $a->setCurrentTheme($a->profile['theme']);
@@ -212,7 +210,7 @@ class Profile
                        );
                }
 
-               $block = ((Config::get('system', 'block_public') && !Session::isAuthenticated()) ? true : false);
+               $block = ((DI::config()->get('system', 'block_public') && !Session::isAuthenticated()) ? true : false);
 
                /**
                 * @todo
@@ -1232,7 +1230,7 @@ class Profile
         */
        public static function searchProfiles($start = 0, $count = 100, $search = null)
        {
-               $publish = (Config::get('system', 'publish_all') ? '' : " AND `publish` = 1 ");
+               $publish = (DI::config()->get('system', 'publish_all') ? '' : " AND `publish` = 1 ");
                $total = 0;
 
                if (!empty($search)) {