Use modern get_config() syntax

This commit is contained in:
Max Kostikov 2018-11-05 21:25:08 +01:00
parent d6523c67a6
commit 2dd124d09e

View File

@ -240,10 +240,8 @@ class Photo extends \Zotlabs\Web\Controller {
// This has performance considerations but we highly recommend you
// leave it alone.
$cache = get_config('system','photo_cache_time');
if(! $cache)
$cache = (3600 * 24); // 1 day
$cache = get_config('system','photo_cache_time', 3600);
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $cache) . " GMT");
header("Cache-Control: max-age=" . $cache);