From 10ffbc918a7a2b7aac3fa6684daa6c637a3bcb51 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Tue, 17 Jul 2012 15:30:33 +0100 Subject: [PATCH] Fixed the behaviour for the ShowTooltip configuration directive in the navigation --- libraries/navigation/NavigationTree.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/navigation/NavigationTree.class.php b/libraries/navigation/NavigationTree.class.php index 4a69aa7ada..d8e2818d88 100644 --- a/libraries/navigation/NavigationTree.class.php +++ b/libraries/navigation/NavigationTree.class.php @@ -844,9 +844,11 @@ class PMA_NavigationTree $retval .= htmlspecialchars($node->name); $retval .= ""; } 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 .= ""; $retval .= htmlspecialchars($node->real_name);