mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3977 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
53909712e2
commit
2fe82be5a3
1 changed files with 4 additions and 2 deletions
|
|
@ -399,7 +399,8 @@
|
|||
$url = str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->url);
|
||||
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/', $node->url)) {
|
||||
$href = getUrl('','mid',$node->url);
|
||||
$href = str_replace(Context::getRequestUri(),'/',$href);
|
||||
$pos = strpos($href, $_SERVER['HTTP_HOST']);
|
||||
if($pos !== false) $href = substr($href, $pos+strlen($_SERVER['HTTP_HOST']));
|
||||
} else $href = $url;
|
||||
$open_window = $node->open_window;
|
||||
$expand = $node->expand;
|
||||
|
|
@ -491,7 +492,8 @@
|
|||
$url = str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->url);
|
||||
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/i', $node->url)) {
|
||||
$href = getUrl('','mid',$node->url);
|
||||
$href = str_replace(Context::getRequestUri(),'/',$href);
|
||||
$pos = strpos($href, $_SERVER['HTTP_HOST']);
|
||||
if($pos !== false) $href = substr($href, $pos+strlen($_SERVER['HTTP_HOST']));
|
||||
} else $href = $url;
|
||||
$open_window = $node->open_window;
|
||||
$normal_btn = str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->normal_btn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue