X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FGroup.php;h=6542cc74a8b02abc984fbdc128a74cc368487bd3;hb=800694e9b36bc261a671a80b7ca787f27564a7ac;hp=b3fe1ba53b04751948329f21921d48c1d3be689b;hpb=8e6973b774efeff5dd381e8984c22171c6a14c31;p=friendica.git diff --git a/src/Module/Group.php b/src/Module/Group.php index b3fe1ba53b..6542cc74a8 100644 --- a/src/Module/Group.php +++ b/src/Module/Group.php @@ -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); }