Add missing use statements in modules classes

This commit is contained in:
Hypolite Petovan 2022-10-19 09:00:43 -04:00
parent d2da2492b7
commit 47d9f91009
5 changed files with 5 additions and 5 deletions

View file

@ -55,7 +55,7 @@ abstract class BaseAdmin extends BaseModule
if (!Session::getLocalUser()) {
if ($interactive) {
DI::sysmsg()->addNotice(DI::l10n()->t('Please login to continue.'));
Session::set('return_path', DI::args()->getQueryString());
DI::session()->set('return_path', DI::args()->getQueryString());
DI::baseUrl()->redirect('login');
} else {
throw new HTTPException\UnauthorizedException(DI::l10n()->t('Please login to continue.'));