mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
optimizer에서 source_files의 목록을 for구문에서 foreach로 변경하여 놓치는 파일이 없도록 처리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2762 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c7b07fce75
commit
44c7ca3035
1 changed files with 2 additions and 3 deletions
|
|
@ -33,9 +33,8 @@
|
|||
// 캐시 디렉토리가 없으면 실행하지 않음
|
||||
if(!is_dir($this->cache_path)) return $source_files;
|
||||
|
||||
$file_count = count($source_files);
|
||||
for($i=0;$i<$file_count;$i++) {
|
||||
$file = trim($source_files[$i]);
|
||||
if(!count($source_files)) return;
|
||||
foreach($source_files as $file) {
|
||||
if(!$file) continue;
|
||||
$file = str_replace("\\","/",$file);
|
||||
if(eregi("^http:\/\/",$file) || $file == './common/css/button.css') $files[] = $file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue