mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Create human-readable paths for minified scripts
This commit is contained in:
parent
aa3ef592d9
commit
a4d944f23d
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ class FrontEndFileHandler extends Handler
|
|||
if(($file->fileExtension === 'css' || $file->fileExtension === 'js') && file_exists($originalFilePath))
|
||||
{
|
||||
$minifiedFileName = $file->fileNameNoExt . '.min.' . $file->fileExtension;
|
||||
$minifiedFileHash = substr(sha1($file->cdnPath . $file->fileName), 0, 24);
|
||||
$minifiedFileHash = ltrim(str_replace(array('/', '\\'), '.', $pathInfo['dirname']), '.');
|
||||
$minifiedFilePath = _XE_PATH_ . 'files/cache/minify/' . $minifiedFileHash . '.' . $minifiedFileName;
|
||||
|
||||
if(!file_exists($minifiedFilePath) || filemtime($minifiedFilePath) < filemtime($originalFilePath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue