mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 11:52:14 +09:00
Optimizer를 개량하여 IE6를 제외한 브라우저라면 gzip 전송이 되도록 하고 불필요한 정규표현식을 정리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3534 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4937f8c223
commit
04827948ea
4 changed files with 31 additions and 23 deletions
|
|
@ -87,16 +87,9 @@
|
|||
function display($content) {
|
||||
$content .= $this->_debugOutput();
|
||||
|
||||
$path = getScriptPath();
|
||||
|
||||
// commons/modules/files/widgets/layouts/addons 로 시작되는 src나 href의 값을 절대경로로 변경
|
||||
$content = preg_replace('!(href|src)=("|\'){0,1}(commons|modules|widgets|layouts|addons|files)!is', '\\1=\\2'.$path.'\\3', $content);
|
||||
$content = preg_replace('!(href|src)=("|\'){0,1}\.\/([a-zA-Z0-9\_^\/]+)\/!is', '\\1=\\2'.$path.'\\3/', $content);
|
||||
|
||||
// 출력하기 전에 trigger 호출 (after)
|
||||
ModuleHandler::triggerCall('display', 'after', $content);
|
||||
|
||||
|
||||
if($this->gz_enabled) print ob_gzhandler($content, 5);
|
||||
else print $content;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue