Use Config::get

This commit is contained in:
Sandro Santilli 2017-04-21 17:09:06 +02:00
parent 05b6891e89
commit e2a0a72598
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
<?php <?php
use \Friendica\Core\Config;
require_once('include/security.php'); require_once('include/security.php');
require_once('include/datetime.php'); require_once('include/datetime.php');
@ -21,7 +24,7 @@ if (isset($_COOKIE["Friendica"])) {
// Renew the cookie // Renew the cookie
// Expires after 7 days by default, // Expires after 7 days by default,
// can be set via system.auth_cookie_lifetime // 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]); new_cookie($authcookiedays*24*60*60, $r[0]);
// Do the authentification if not done by now // Do the authentification if not done by now