From ee8ffa575fa6f98c47b826dbf4b4e7939c460c84 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 1 Dec 2012 15:00:37 -0800 Subject: [PATCH] Prolong comment length (thanks to Martin Dzubak) --- adminer/create.inc.php | 2 +- adminer/include/editing.inc.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adminer/create.inc.php b/adminer/create.inc.php index c2f4bc4f..619ce2ab 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -185,7 +185,7 @@ edit_fields($row["fields"], $collations, "TABLE", $suhosin, $foreign_keys, $comm : "> -' : ''); ?> +server_info >= 5.5 ? 2048 : 60) . '"' . ($comments ? '' : ' class="hidden"') . '>' : ''); ?>

> diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index c05e9bcb..ca7ebd28 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -220,7 +220,7 @@ function type_class($type) { * @return null */ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $foreign_keys = array(), $comments = false) { - global $inout; + global $connection, $inout; ?>   @@ -251,7 +251,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei checked onclick="var field = this.form['fields[' + this.value + '][field]']; if (!field.value) { field.value = 'id'; field.onchange(); }"> " onchange="this.previousSibling.checked = true;"> -" : ""); ?> +" : ""); ?> ";