From ff0bdfc77cd8eedbcad75353bacf743af6d7b6a7 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 6 May 2013 15:06:18 -0700 Subject: [PATCH] Issue #241 - BC Sitelink fix. --- e107_handlers/sitelinks_class.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php index f21ff7e03..f3407a64a 100644 --- a/e107_handlers/sitelinks_class.php +++ b/e107_handlers/sitelinks_class.php @@ -1499,7 +1499,21 @@ class navigation_shortcodes extends e_shortcode 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='')