From f7a31e5f4c71594a053c81ebac34d91ff930c51a Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 5 Oct 2011 00:34:56 +0530 Subject: [PATCH] bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false --- ChangeLog | 1 + libraries/navigation_header.inc.php | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a285f45de..edf76a79d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ phpMyAdmin - ChangeLog ====================== 3.4.7.0 (not yet released) +- bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false 3.4.6.0 (not yet released) - patch #3404173 InnoDB comment display with tooltips/aliases diff --git a/libraries/navigation_header.inc.php b/libraries/navigation_header.inc.php index b549a02fd..a892c4f01 100644 --- a/libraries/navigation_header.inc.php +++ b/libraries/navigation_header.inc.php @@ -97,15 +97,27 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) { if ($GLOBALS['cfg']['MainPageIconic']) { echo '' . __('phpMyAdmin documentation') . ''; + } else { + echo '
' . __('phpMyAdmin documentation'); } echo ''; - echo ' ' . PMA_showMySQLDocu('', '', TRUE) . "\n"; + + $documentation_link = PMA_showMySQLDocu('', '', true); + if ($GLOBALS['cfg']['MainPageIconic']) { + echo $documentation_link . "\n"; + } else { + preg_match('/]*>/', $documentation_link, $matches); + $link = $matches[0]; + echo substr($link, 0, strlen($link) - 1) . ' title="' . __('Documentation') . '" >' + . '
' . __('Documentation') . ''; + } $params = array('uniqid' => uniqid()); if (!empty($GLOBALS['db'])) { $params['db'] = $GLOBALS['db']; } - echo ''; + echo ''; if ($GLOBALS['cfg']['MainPageIconic']) { echo '