Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show type by field name (thanks to Jakub Sochor)

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@810 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit cb2c9571480fa062e0f4c2f0579b00c684008334 1 parent 473c3a2
jakubvrana authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  adminer/include/adminer.inc.php
  2. +1 −1  adminer/select.inc.php
2  adminer/include/adminer.inc.php
View
@@ -35,7 +35,7 @@ function adminer_table_name($row) {
* @return string
*/
function adminer_field_name($fields, $key) {
- return call_adminer('field_name', htmlspecialchars($key), $fields, $key);
+ return call_adminer('field_name', '<span title="' . htmlspecialchars($fields[$key]["full_type"]) . '">' . htmlspecialchars($key) . '</span>', $fields, $key);
}
/** Links after select heading
2  adminer/select.inc.php
View
@@ -13,7 +13,7 @@
unset($text_length);
foreach ($fields as $key => $field) {
if (isset($field["privileges"]["select"])) {
- $columns[$key] = adminer_field_name($fields, $key); //! numeric $key is problematic in optionlist()
+ $columns[$key] = strip_tags(adminer_field_name($fields, $key)); //! numeric $key is problematic in optionlist()
if (preg_match('~text|blob~', $field["type"])) {
$text_length = (isset($_GET["text_length"]) ? $_GET["text_length"] : "100");
}
Please sign in to comment.
Something went wrong with that request. Please try again.