]> git.mxchange.org Git - friendica.git/blobdiff - mod/network.php
Move /profile_photo to Module\Settings\Profile\Photo
[friendica.git] / mod / network.php
index 11650367b586398258a6e120e471ba79e47d4bb8..db6d8eaf4516f48f8e8f84dc60c33c1e30b1ca49 100644 (file)
@@ -12,9 +12,7 @@ use Friendica\Content\Pager;
 use Friendica\Content\Widget;
 use Friendica\Content\Text\HTML;
 use Friendica\Core\ACL;
-use Friendica\Core\Config;
 use Friendica\Core\Hook;
-use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
@@ -358,7 +356,7 @@ function networkFlatView(App $a, $update = 0)
 
                $o .= status_editor($a, $x);
 
-               if (!Config::get('theme', 'hide_eventlist')) {
+               if (!DI::config()->get('theme', 'hide_eventlist')) {
                        $o .= Profile::getBirthdays();
                        $o .= Profile::getEventsReminderHTML();
                }
@@ -491,7 +489,7 @@ function networkThreadedView(App $a, $update, $parent)
                $o .= $tabs;
 
                if ($gid && ($t = Contact::getOStatusCountByGroupId($gid)) && !DI::pConfig()->get(local_user(), 'system', 'nowarn_insecure')) {
-                       notice(L10n::tt("Warning: This group contains %s member from a network that doesn't allow non public messages.",
+                       notice(DI::l10n()->tt("Warning: This group contains %s member from a network that doesn't allow non public messages.",
                                "Warning: This group contains %s members from a network that doesn't allow non public messages.",
                                $t) . EOL);
                        notice(DI::l10n()->t("Messages in this group won't be send to these receivers.").EOL);
@@ -621,7 +619,7 @@ function networkThreadedView(App $a, $update, $parent)
                }
        }
 
-       if (!$gid && !$cid && !$update && !Config::get('theme', 'hide_eventlist')) {
+       if (!$gid && !$cid && !$update && !DI::config()->get('theme', 'hide_eventlist')) {
                $o .= Profile::getBirthdays();
                $o .= Profile::getEventsReminderHTML();
        }
@@ -704,7 +702,7 @@ function networkThreadedView(App $a, $update, $parent)
                } else {
                        // Load all unseen items
                        $sql_extra4 = "`item`.`unseen`";
-                       if (Config::get("system", "like_no_comment")) {
+                       if (DI::config()->get("system", "like_no_comment")) {
                                $sql_extra4 .= " AND `item`.`gravity` IN (" . GRAVITY_PARENT . "," . GRAVITY_COMMENT . ")";
                        }
                        if ($order === 'post') {