]> git.mxchange.org Git - friendica.git/blobdiff - src/Security/Authentication.php
Update copyright
[friendica.git] / src / Security / Authentication.php
index 0b2fc9f9cf3d15850b7c88cd053b6608fe98cf3b..709267c79fbd981dc3895ec0144e0dc41b243fb7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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'));
                        }
                }