mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
메뉴 캐시파일 생성시 절대 경로가 아닌 상대경로로 url을 생성하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3975 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a1c6212c04
commit
e237944abf
2 changed files with 11 additions and 7 deletions
|
|
@ -397,8 +397,10 @@
|
|||
$name_str = sprintf('$_names = array(%s); print $_names[$_SESSION["lang_type"]];', $name_arr_str);
|
||||
|
||||
$url = str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->url);
|
||||
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/', $node->url)) $href = getUrl('','mid',$node->url);
|
||||
else $href = $url;
|
||||
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/', $node->url)) {
|
||||
$href = getUrl('','mid',$node->url);
|
||||
$href = str_replace(Context::getRequestUri(),'/',$href);
|
||||
} else $href = $url;
|
||||
$open_window = $node->open_window;
|
||||
$expand = $node->expand;
|
||||
|
||||
|
|
@ -487,8 +489,10 @@
|
|||
// 변수 정리
|
||||
$href = str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->href);
|
||||
$url = str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->url);
|
||||
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/i', $node->url)) $href = getUrl('','mid',$node->url);
|
||||
else $href = $url;
|
||||
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/i', $node->url)) {
|
||||
$href = getUrl('','mid',$node->url);
|
||||
$href = str_replace(Context::getRequestUri(),'/',$href);
|
||||
} else $href = $url;
|
||||
$open_window = $node->open_window;
|
||||
$normal_btn = str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->normal_btn);
|
||||
$hover_btn = str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->hover_btn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue