mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
r7434 fix
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7438 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
96c71e8c9e
commit
fe09e55c51
12 changed files with 187 additions and 44 deletions
|
|
@ -46,18 +46,19 @@
|
|||
if(!count($source_files)) return;
|
||||
|
||||
$files = array();
|
||||
$hash = '';
|
||||
foreach($source_files as $key => $file) {
|
||||
if(!$file || !$file['file'] || !file_exists($file['file'])) continue;
|
||||
$file['file'] = $source_files[$key]['file'] = str_replace("\\","/",$file['file']);
|
||||
if(empty($file['optimized']) || preg_match('/^https?:\/\//i', $file['file']) ) $files[] = $file;
|
||||
else{
|
||||
$targets[] = $file;
|
||||
$hash .= $file['file'];
|
||||
}
|
||||
}
|
||||
|
||||
if(!count($targets)) return $this->_getOptimizedRemoved($files);
|
||||
|
||||
$list_file_hash = md5(join(' ', $targets));
|
||||
$list_file_hash = md5($hash);
|
||||
$list_file = FileHandler::getRealPath($this->cache_path . $list_file_hash);
|
||||
|
||||
if(!file_exists($list_file)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue