]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Login.php
Add 'addon' folder as 'Friendica\Addon' namespace for autoload
[friendica.git] / src / Module / Login.php
index 82d70498281fc6547a6e7a79520c6bca96793c8b..41ea917cf3e8087c49e6ccbee8502afea1feefe5 100644 (file)
@@ -20,9 +20,6 @@ use Friendica\Util\Network;
 use Friendica\Util\Strings;
 use LightOpenID;
 
-require_once 'boot.php';
-require_once 'include/text.php';
-
 /**
  * Login module
  *
@@ -51,10 +48,10 @@ class Login extends BaseModule
 
        public static function post()
        {
-               $return_path = $_SESSION['return_path'];
+               $return_path = defaults($_SESSION, 'return_path', '');
                session_unset();
                $_SESSION['return_path'] = $return_path;
-               
+
                // OpenId Login
                if (
                        empty($_POST['password'])