diff --git a/classes/frontendfile/FrontEndFileHandler.class.php b/classes/frontendfile/FrontEndFileHandler.class.php index 62b67d19b..fd1729db7 100644 --- a/classes/frontendfile/FrontEndFileHandler.class.php +++ b/classes/frontendfile/FrontEndFileHandler.class.php @@ -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); } }