#85, time()을 $_SERVER['REQUEST_TIME']으로 대체

This commit is contained in:
khongchi 2013-11-21 16:13:53 +09:00
parent 3bc8d7da67
commit 540da2c75c
28 changed files with 48 additions and 48 deletions

View file

@ -385,7 +385,7 @@ class widgetController extends widget
{
$filemtime = filemtime($cache_file);
// Should be modified compared to the time of the cache or in the future if creating more than widget.controller.php file a return value of the cache
if($filemtime + $widget_cache * 60 > time() && $filemtime > filemtime(_XE_PATH_.'modules/widget/widget.controller.php'))
if($filemtime + $widget_cache * 60 > $_SERVER['REQUEST_TIME'] && $filemtime > filemtime(_XE_PATH_.'modules/widget/widget.controller.php'))
{
$cache_body = FileHandler::readFile($cache_file);
$cache_body = preg_replace('@<\!--#Meta:@', '<!--Meta:', $cache_body);