mirror of
https://github.com/friendica/friendica
synced 2025-04-29 10:24:23 +02:00
Split and delete ModuleController
- $moduleName is part of the argument string => App\Arguments - $isBackend boolean already part of App\Mode::isBackend() - $module is now the direct return of App\Router::getModule() - ModuleController::run() moved to BaseModule::run()
This commit is contained in:
parent
a5ab184fb8
commit
b5d2d32b44
17 changed files with 299 additions and 793 deletions
|
@ -369,7 +369,7 @@ class Authentication
|
|||
if ($login_initial) {
|
||||
Hook::callAll('logged_in', $user_record);
|
||||
|
||||
if (DI::module()->getName() !== 'home' && $this->session->exists('return_path')) {
|
||||
if (DI::args()->getModuleName() !== 'home' && $this->session->exists('return_path')) {
|
||||
$this->baseUrl->redirect($this->session->get('return_path'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue