]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile.php
Move Config::get() to DI::config()->get()
[friendica.git] / src / Module / Profile.php
index 6e960f8b629a4a1a23bdf258a01b7602d1262d19..e1903b8c55f3ba985f3196a9849aaa4d570ad137 100644 (file)
@@ -83,7 +83,7 @@ class Profile extends BaseModule
 
                        $page['htmlhead'] .= "\n";
 
-                       $blocked   = !local_user() && !Session::getRemoteContactID($a->profile['profile_uid']) && Config::get('system', 'block_public');
+                       $blocked   = !local_user() && !Session::getRemoteContactID($a->profile['profile_uid']) && DI::config()->get('system', 'block_public');
                        $userblock = !local_user() && !Session::getRemoteContactID($a->profile['profile_uid']) && $a->profile['hidewall'];
 
                        if (!empty($a->profile['page-flags']) && $a->profile['page-flags'] == User::PAGE_FLAGS_COMMUNITY) {
@@ -150,7 +150,7 @@ class Profile extends BaseModule
 
                $hashtags = $_GET['tag'] ?? '';
 
-               if (Config::get('system', 'block_public') && !local_user() && !Session::getRemoteContactID($a->profile['profile_uid'])) {
+               if (DI::config()->get('system', 'block_public') && !local_user() && !Session::getRemoteContactID($a->profile['profile_uid'])) {
                        return Login::form();
                }
 
@@ -331,7 +331,7 @@ class Profile extends BaseModule
                $last_updated_array[$last_updated_key] = time();
                Session::set('last_updated', $last_updated_array);
 
-               if ($is_owner && !$update && !Config::get('theme', 'hide_eventlist')) {
+               if ($is_owner && !$update && !DI::config()->get('theme', 'hide_eventlist')) {
                        $o .= ProfileModel::getBirthdays();
                        $o .= ProfileModel::getEventsReminderHTML();
                }