mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 03:53:59 +02:00
Display images in Editor
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@898 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -114,6 +114,9 @@ function adminer_row_descriptions($rows, $foreign_keys) {
|
||||
*/
|
||||
function adminer_select_val($val, $link, $field) {
|
||||
$return = ($field["type"] == "char" ? "<code>$val</code>" : $val);
|
||||
if (ereg('blob|binary', $field["type"]) && !is_utf8($val)) {
|
||||
$return = lang('%d byte(s)', strlen($val));
|
||||
}
|
||||
return call_adminer('select_val', ($link ? "<a href=\"$link\">$return</a>" : $return), $val, $link);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user