Do not check mtime of remote or inaccessible scripts

This commit is contained in:
Kijin Sung 2016-05-03 22:07:43 +09:00
parent 5d23ac2f16
commit 753a70005a

View file

@ -395,7 +395,11 @@ class FrontEndFileHandler extends Handler
{
foreach($indexedMap as $file)
{
$fullFilePath = $file->filePath . '/' . $file->fileName . '?' . date('YmdHis', filemtime($file->fileFullPath));
$fullFilePath = $file->filePath . '/' . $file->fileName;
if (!$file->isExternalURL && is_readable($file->fileFullPath))
{
$fullFilePath .= '?' . date('YmdHis', filemtime($file->fileFullPath));
}
$result[] = array('file' => $fullFilePath, 'media' => $file->media, 'targetie' => $file->targetIe);
}
}
@ -429,7 +433,11 @@ class FrontEndFileHandler extends Handler
{
foreach($indexedMap as $file)
{
$fullFilePath = $file->filePath . '/' . $file->fileName . '?' . date('YmdHis', filemtime($file->fileFullPath));
$fullFilePath = $file->filePath . '/' . $file->fileName;
if (!$file->isExternalURL && is_readable($file->fileFullPath))
{
$fullFilePath .= '?' . date('YmdHis', filemtime($file->fileFullPath));
}
$result[] = array('file' => $fullFilePath, 'targetie' => $file->targetIe);
}
}