Fixed the behaviour for the ShowTooltip configuration directive in the navigation

This commit is contained in:
Rouslan Placella 2012-07-17 15:30:33 +01:00
parent 49d2d6f5fb
commit 10ffbc918a

View File

@ -844,9 +844,11 @@ class PMA_NavigationTree
$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);