From 222be43303885721813820394174f276775cb357 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 29 Jun 2016 20:50:30 +0900 Subject: [PATCH] Remove condition of checking the content of minified scripts --- classes/frontendfile/FrontEndFileHandler.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/classes/frontendfile/FrontEndFileHandler.class.php b/classes/frontendfile/FrontEndFileHandler.class.php index 4cd781529..c06220a9d 100644 --- a/classes/frontendfile/FrontEndFileHandler.class.php +++ b/classes/frontendfile/FrontEndFileHandler.class.php @@ -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) {