diff options
Diffstat (limited to 'code/nav.inc.php')
-rw-r--r-- | code/nav.inc.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/code/nav.inc.php b/code/nav.inc.php index 245e208..59f4c8d 100644 --- a/code/nav.inc.php +++ b/code/nav.inc.php @@ -68,12 +68,9 @@ $ccount = 0; $ret = '<li>'; - $link = $GLOBALS['links']->ParseNavLink($this->link); + $a = $GLOBALS['links']->ParseNavLink($this->text, $this->link); - if($link) - $ret .= '<a href="' . $link . '">' . $this->text . '</a>'; - else - $ret .= $this->text; + $ret .= $a; if(count($this->children) > 0) { $ret .= '<ul>'; @@ -91,7 +88,7 @@ $ret .= '</ul>'; } - if(!$ccount && !$link) + if(!$ccount && $a == $this->text) return ''; return $ret . '</li>'; |