]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Group.php
Remove unused `use` statements & remove PConfig class
[friendica.git] / src / Module / Group.php
index b3fe1ba53b04751948329f21921d48c1d3be689b..6542cc74a8b02abc984fbdc128a74cc368487bd3 100644 (file)
@@ -8,7 +8,6 @@ namespace Friendica\Module;
 use Friendica\BaseModule;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
-use Friendica\Core\PConfig;
 use Friendica\Core\Renderer;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
@@ -24,7 +23,7 @@ class Group extends BaseModule
        {
                $a = DI::app();
 
-               if ($a->isAjax()) {
+               if (DI::mode()->isAjax()) {
                        self::ajaxPost();
                }
 
@@ -137,7 +136,7 @@ class Group extends BaseModule
 
                $a = DI::app();
 
-               $a->page['aside'] = Model\Group::sidebarWidget('contact', 'group', 'extended', (($a->argc > 1) ? $a->argv[1] : 'everyone'));
+               DI::page()['aside'] = Model\Group::sidebarWidget('contact', 'group', 'extended', (($a->argc > 1) ? $a->argv[1] : 'everyone'));
 
                // With no group number provided we jump to the unassigned contacts as a starting point
                // @TODO: Replace with parameter from router
@@ -146,7 +145,7 @@ class Group extends BaseModule
                }
 
                // Switch to text mode interface if we have more than 'n' contacts or group members
-               $switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit');
+               $switchtotext = DI::pConfig()->get(local_user(), 'system', 'groupedit_image_limit');
                if (is_null($switchtotext)) {
                        $switchtotext = Config::get('system', 'groupedit_image_limit', 200);
                }