]> git.mxchange.org Git - friendica.git/commitdiff
Use Config::get
authorSandro Santilli <strk@kbt.io>
Fri, 21 Apr 2017 15:09:06 +0000 (17:09 +0200)
committerSandro Santilli <strk@kbt.io>
Fri, 21 Apr 2017 15:09:06 +0000 (17:09 +0200)
include/auth.php

index 2258128c5d8dcc873a28417fc27273308f45d643..d819a636b0876d7fb99f7322eb519eb125d1c29e 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+
+use \Friendica\Core\Config;
+
 require_once('include/security.php');
 require_once('include/datetime.php');
 
@@ -21,7 +24,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