diff --git a/ChangeLog b/ChangeLog index a0b4025de..9a2676ffd 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ ----------------------- +---------------------- phpMyAdmin - Changelog ---------------------- @@ -21,6 +21,8 @@ $Source$ bug #1317655 information_schema browsing * db_details_db_info.php, db_details_structure.php: fixed display table statistics for information_schema + * db_details_links.php, header.inc.php: + moved database comment into header (serverinfo) after database name 2005-10-09 Marc Delisle * tbl_properties_links.php: invalid js confirmation and operation feedback diff --git a/db_details_links.php b/db_details_links.php index 930ee8270..6946da579 100644 --- a/db_details_links.php +++ b/db_details_links.php @@ -109,29 +109,6 @@ if ($GLOBALS['cfg']['AllowUserDropDatabase']) { echo PMA_getTabs( $tabs ); unset( $tabs ); -/** - * Settings for relations stuff - */ -require_once('./libraries/relation.lib.php'); -$cfgRelation = PMA_getRelationsParam(); - -// Get additional information about tables for tooltip is done in db_details_db_info.php only once -if ($cfgRelation['commwork']) { - $comment = PMA_getComments($db); - - /** - * Displays table comment - */ - if (is_array($comment)) { - ?> - -

- -

- ' . "\n" - . '"' . htmlspecialchars($show_comment) . '"' . "\n"; + echo '' + .'"' . htmlspecialchars($show_comment) + .'"' . "\n"; } // end if + } else { + // no table selected, display database comment if present + /** + * Settings for relations stuff + */ + require_once('./libraries/relation.lib.php'); + $cfgRelation = PMA_getRelationsParam(); + + // Get additional information about tables for tooltip is done + // in db_details_db_info.php only once + if ($cfgRelation['commwork']) { + $comment = PMA_getComments( $GLOBALS['db'] ); + + /** + * Displays table comment + */ + if ( is_array( $comment ) ) { + echo '"' + .htmlspecialchars(implode(' ', $comment)) + .'"' . "\n"; + } // end if + } } } echo ''; @@ -230,5 +254,4 @@ if (empty($GLOBALS['is_header_sent'])) { */ $GLOBALS['is_header_sent'] = TRUE; } - -?> +?> \ No newline at end of file