Remove condition of checking the content of minified scripts

This commit is contained in:
Kijin Sung 2016-06-29 20:50:30 +09:00
parent ce4188b05c
commit 222be43303

View file

@ -180,8 +180,7 @@ class FrontEndFileHandler extends Handler
$file->vars = (array)$vars;
// Fix incorrectly minified URL
if($file->isMinified && !$file->isExternalURL && (!file_exists($file->fileFullPath) || is_link($file->fileFullPath) ||
(filesize($file->fileFullPath) < 40 && trim(file_get_contents($file->fileFullPath)) === $file->keyName)))
if($file->isMinified && !$file->isExternalURL && (!file_exists($file->fileFullPath) || is_link($file->fileFullPath) || filesize($file->fileFullPath) < 40))
{
if(file_exists($file->fileRealPath . '/' . $file->fileNameNoExt . '.' . $file->fileExtension))
{
@ -190,7 +189,7 @@ class FrontEndFileHandler extends Handler
$file->fileFullPath = $file->fileRealPath . '/' . $file->fileNameNoExt . '.' . $file->fileExtension;
}
}
// Do not minify common JS plugins
if (strpos($file->filePath, 'common/js/plugins') !== false)
{