Show database comment on each tab (same as we do with table comments).
This commit is contained in:
@@ -97,6 +97,29 @@ if (!$cfg['LightTabs']) {
|
||||
echo '<br />';
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)) {
|
||||
?>
|
||||
<!-- DB comment -->
|
||||
<p id="dbComment"><i>
|
||||
<?php echo htmlspecialchars(implode(' ', $comment)) . "\n"; ?>
|
||||
</i></p>
|
||||
<?php
|
||||
} // end if
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a message
|
||||
*/
|
||||
|
Reference in New Issue
Block a user