#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

@ -563,7 +563,7 @@ class commentModel extends comment
// create a lock file to prevent repeated work when performing a batch job
$lock_file = "./files/cache/tmp/lock." . $document_srl;
if(file_exists($lock_file) && filemtime($lock_file) + 60 * 60 * 10 < time())
if(file_exists($lock_file) && filemtime($lock_file) + 60 * 60 * 10 < $_SERVER['REQUEST_TIME'])
{
return;
}