1
0
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:
SecretR
2013-02-13 17:03:53 +02:00
parent fa0e7ee4b5
commit bcaf4e70c6
5 changed files with 13 additions and 10 deletions

View File

@@ -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'
}