1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Issue #241 - BC Sitelink fix.

This commit is contained in:
Cameron
2013-05-06 15:06:18 -07:00
parent 1dee4f62a1
commit ff0bdfc77c

View File

@@ -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='')