mirror of
https://github.com/e107inc/e107.git
synced 2025-08-31 18:11:56 +02:00
Fix navigation links assembling (navigation handler)
This commit is contained in:
@@ -1535,7 +1535,11 @@ class navigation_shortcodes extends e_shortcode
|
||||
|
||||
function sc_link_url($parm='')
|
||||
{
|
||||
if($this->var['link_url'][0] != "{" && strpos($this->var['link_url'],"://")===false)
|
||||
if(strpos($this->var['link_url'], e_HTTP) === 0)
|
||||
{
|
||||
$url = "{e_BASE}".substr($this->var['link_url'], strlen(e_HTTP));
|
||||
}
|
||||
elseif($this->var['link_url'][0] != "{" && strpos($this->var['link_url'],"://")===false)
|
||||
{
|
||||
$url = "{e_BASE}".$this->var['link_url']; // Add e_BASE to links like: 'news.php' or 'contact.php'
|
||||
}
|
||||
|
Reference in New Issue
Block a user