diff --git a/ChangeLog b/ChangeLog index a95927620..f52169863 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $Source$ 2005-12-14 Michal Čihař * libraries/config.default.php, Documentation.html: Transliterate invalid chars by default (RFE #1380255). + * left.php: Resurrect database link in light frame (bug #1373804). 2005-12-13 Michal Čihař * querywindow.php: Fix query history displaying (bug #1374639). diff --git a/left.php b/left.php index cce295f87..323e8da32 100644 --- a/left.php +++ b/left.php @@ -177,6 +177,37 @@ $element_counter = 0; if ( $GLOBALS['cfg']['LeftFrameLight'] && ! empty( $db ) ) { $common_url_query = PMA_generate_common_url( $db ); + + $db_tooltip = ''; + if ($GLOBALS['cfg']['ShowTooltip'] + && $GLOBALS['cfgRelation']['commwork']) { + $_db_tooltip = PMA_getComments($db); + if (is_array($_db_tooltip)) { + $db_tooltip = implode(' ', $_db_tooltip); + } + } + + $disp_name = $db; + if ($db_tooltip && $GLOBALS['cfg']['ShowTooltipAliasDB']) { + $disp_name = $db_tooltip; + $disp_name_cut = $db_tooltip; + $db_tooltip = $db; + } + + ?> +

+ (' . PMA_getTableCount($db) . ') '; + } + echo htmlspecialchars( $disp_name ); + if ($GLOBALS['text_dir'] === 'ltr') { + echo ' (' . PMA_getTableCount($db) . ') '; + } + echo '

'; + $table_list = PMA_getTableList( $db ); if ( count( $table_list ) > 0 ) { PMA_displayTableList( $table_list, true, '', $db );