mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:10:17 +00:00
UserSession class [5] - Refactor src/Module/ files with DI
This commit is contained in:
parent
a729f3255d
commit
eecc456e0c
78 changed files with 455 additions and 530 deletions
|
@ -30,7 +30,6 @@ use Friendica\Content\Text\BBCode;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Module\BaseNotifications;
|
||||
|
@ -99,7 +98,7 @@ class Introductions extends BaseNotifications
|
|||
'text' => (!$all ? $this->t('Show Ignored Requests') : $this->t('Hide Ignored Requests')),
|
||||
];
|
||||
|
||||
$owner = User::getOwnerDataById(Session::getLocalUser());
|
||||
$owner = User::getOwnerDataById(DI::userSession()->getLocalUserId());
|
||||
|
||||
// Loop through all introduction notifications.This creates an array with the output html for each
|
||||
// introduction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue