Move Core\Session::get() to DI::session()->get()

This commit is contained in:
Philipp 2022-10-18 21:10:37 +02:00
parent 99d5441007
commit 7ac86e49d1
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
15 changed files with 36 additions and 31 deletions

View file

@ -46,8 +46,8 @@ class Delegation extends BaseModule
$uid = local_user();
$orig_record = User::getById(DI::app()->getLoggedInUserId());
if (Session::get('submanage')) {
$user = User::getById(Session::get('submanage'));
if (DI::session()->get('submanage')) {
$user = User::getById(DI::session()->get('submanage'));
if (DBA::isResult($user)) {
$uid = intval($user['uid']);
$orig_record = $user;