Skip to content

Commit

Permalink
Fixed the behaviour for the ShowTooltip configuration directive in th…
Browse files Browse the repository at this point in the history
…e navigation
  • Loading branch information
roccivic committed Oct 30, 2012
1 parent 49d2d6f commit 10ffbc9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libraries/navigation/NavigationTree.class.php
Expand Up @@ -844,9 +844,11 @@ private function _renderNode($node, $recursive = -1, $class = '')
$retval .= htmlspecialchars($node->name);
$retval .= "</a>";
} else {
$title = $node->getComment();
if ($title) {
$title = " title='" . htmlentities($title, ENT_QUOTES) . "'";
if ($GLOBALS['cfg']['ShowTooltip']) {
$title = $node->getComment();
if ($title) {
$title = " title='" . htmlentities($title, ENT_QUOTES) . "'";
}
}
$retval .= "<a$linkClass$title href='$link'>";
$retval .= htmlspecialchars($node->real_name);
Expand Down

0 comments on commit 10ffbc9

Please sign in to comment.