From 921f31d077ac91f53755c839e35bc474a4aa7939 Mon Sep 17 00:00:00 2001 From: haneul Date: Thu, 27 May 2010 04:22:08 +0000 Subject: [PATCH] path problem for outpage git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7490 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/optimizer/Optimizer.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/optimizer/Optimizer.class.php b/classes/optimizer/Optimizer.class.php index cffe5f9e7..78dbc8c45 100644 --- a/classes/optimizer/Optimizer.class.php +++ b/classes/optimizer/Optimizer.class.php @@ -51,7 +51,7 @@ if($file['file'][0] == '/'){ if(!file_exists($file['file'])){ if(file_exists($_SERVER['DOCUMENT_ROOT'] . $file['file'])){ - $source_files[$key] = $file['file'] = $_SERVER['DOCUMENT_ROOT'].$file['file']; + if($file['optimized']) $source_files[$key]['file'] = $file['file'] = $_SERVER['DOCUMENT_ROOT'].$file['file']; }else{ continue; } @@ -64,7 +64,6 @@ $hash .= $file['file']; } } - if(!count($targets)) return $this->_getOptimizedRemoved($files); $list_file_hash = md5($hash); $oCacheHandler = &CacheHandler::getInstance('template');