1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

Display comment in title of field

This commit is contained in:
Jakub Vrana
2025-03-16 22:49:50 +01:00
parent 0b0e8940e0
commit dd47df9b9c
3 changed files with 2 additions and 15 deletions

View File

@@ -172,7 +172,7 @@ class Adminer {
* @return string HTML code, "" to ignore field
*/
function fieldName($field, $order = 0) {
return '<span title="' . h($field["full_type"]) . '">' . h($field["field"]) . '</span>';
return '<span title="' . h($field["full_type"] . ($field["comment"] != "" ? " : $field[comment]" : '')) . '">' . h($field["field"]) . '</span>';
}
/** Print links after select heading