mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 16:52:16 +09:00
화면에 표시되는 컨텐츠의 내용중 rewrite mod 사용시 상대경로로 인하여 브라우저 캐시 없이 계속 요청되는 경로를 제대로 표시하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5375 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c6f5442b82
commit
e8ec53438c
5 changed files with 26 additions and 17 deletions
|
|
@ -66,7 +66,13 @@
|
|||
|
||||
array_unshift($files, array('file' => $path.'/'.$filename, 'media' => 'all'));
|
||||
|
||||
return $this->_getOptimizedRemoved($files);
|
||||
$files = $this->_getOptimizedRemoved($files);
|
||||
if(!count($files)) return $files;
|
||||
|
||||
foreach($files as $key => $val) {
|
||||
if(substr($val['file'],0,2)=='./') $files[$key]['file'] = Context::getRequestUri().substr($val['file'],2);
|
||||
}
|
||||
return $files;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -208,10 +214,15 @@ if(!$cached) {
|
|||
}
|
||||
|
||||
function _replaceCssPath($matches) {
|
||||
static $abpath = null;
|
||||
if(is_null($abpath)) {
|
||||
$url_info = parse_url(Context::getRequestUri());
|
||||
$abpath = $url_info['path'];
|
||||
}
|
||||
$path = str_replace(array('"',"'"),'',$matches[1]);
|
||||
if(preg_match('/^http|^\//i', $path) || preg_match('/\.htc$/i',$path) ) return $matches[0];
|
||||
|
||||
return 'url("../../../../'.$this->tmp_css_path.$path.'")';
|
||||
return 'url("'.$abpath.$this->tmp_css_path.$path.'")';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue