mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Issue #241 - BC Sitelink fix.
This commit is contained in:
@@ -1499,7 +1499,21 @@ class navigation_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_link_name($parm='')
|
function sc_link_name($parm='')
|
||||||
{
|
{
|
||||||
return e107::getParser()->toHtml($this->var['link_name'],false,'defs');
|
if(!varset($this->var['link_name']))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(substr($this->var['link_name'],0,8) == 'submenu.') // BC Fix.
|
||||||
|
{
|
||||||
|
list($tmp,$tmp2,$link) = explode('.',$this->var['link_name'],3);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$link = $this->var['link_name'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return e107::getParser()->toHtml($link, false,'defs');
|
||||||
}
|
}
|
||||||
|
|
||||||
function sc_link_parent($parm='')
|
function sc_link_parent($parm='')
|
||||||
|
Reference in New Issue
Block a user