mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Optimizer 사용시 css파일이 utf-8이 아닌 경우 오류가 생기는 것을 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2715 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2906a845af
commit
88f4bb1ba5
2 changed files with 13 additions and 0 deletions
|
|
@ -355,6 +355,17 @@
|
|||
return $obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 특정 문자열만 utf-8로 변경
|
||||
**/
|
||||
function convertEncodingStr($str) {
|
||||
$obj->str = $str;
|
||||
$obj = Context::convertEncoding($obj);
|
||||
return $obj->str;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief response method를 강제로 지정 (기본으로는 request method를 이용함)
|
||||
*
|
||||
|
|
|
|||
|
|
@ -91,6 +91,8 @@
|
|||
$file = $targets[$i];
|
||||
$str = FileHandler::readFile($file);
|
||||
|
||||
$str = Context::convertEncodingStr($str);
|
||||
|
||||
// css 일경우 background:url() 변경
|
||||
if($type == "css") $str = $this->replaceCssPath($file, $str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue