]> git.mxchange.org Git - friendica.git/blobdiff - include/auth.php
Merge remote-tracking branch 'upstream/3.5.2rc' into 1705-dbclean-advanced
[friendica.git] / include / auth.php
index 2258128c5d8dcc873a28417fc27273308f45d643..5dfe9d3e062aa7865ab5a9f8db87412d438b986f 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+
+use Friendica\App;
+use Friendica\Core\Config;
+
 require_once('include/security.php');
 require_once('include/datetime.php');
 
@@ -21,7 +25,7 @@ if (isset($_COOKIE["Friendica"])) {
                        // Renew the cookie
                        // Expires after 7 days by default,
                        // can be set via system.auth_cookie_lifetime
-                       $authcookiedays = get_config('system','auth_cookie_lifetime') || 7;
+                       $authcookiedays = Config::get('system', 'auth_cookie_lifetime', 7);
                        new_cookie($authcookiedays*24*60*60, $r[0]);
 
                        // Do the authentification if not done by now