Skip to content

Commit

Permalink
The ShowHint directive was not obeyed for some hints
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Jan 8, 2013
1 parent 888bcca commit 22e79ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/Util.class.php
Expand Up @@ -591,7 +591,12 @@ public static function showPHPDocu($target)
*/
public static function showHint($message)
{
return '<span class="pma_hint">'
if ($GLOBALS['cfg']['ShowHint']) {
$classClause = ' class="pma_hint"';
} else {
$classClause = '';
}
return '<span' . $classClause . '>'
. self::getImage('b_help.png')
. '<span class="hide">' . $message . '</span>'
. '</span>';
Expand Down

0 comments on commit 22e79ee

Please sign in to comment.