optimizer에서 url의 경로가 절대경로(/로 시작)할때에 경로 변경하지않도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3741 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-02-20 14:03:42 +00:00
parent 941ee42a0b
commit 937770d559

View file

@ -191,7 +191,7 @@ if(!$cached) {
function _replaceCssPath($matches) {
$path = str_replace(array('"',"'"),'',$matches[1]);
if(preg_match('/^http/i', $path) || preg_match('/\.htc$/i',$path) ) return $matches[0];
if(preg_match('/^http|^\//i', $path) || preg_match('/\.htc$/i',$path) ) return $matches[0];
return 'url("../../../../'.$this->tmp_css_path.$path.'")';
}