From 3c860b7859c140ad7a53957f47595184a0da723a Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 13 Jul 2009 22:18:53 +0000 Subject: [PATCH] Name Edit button on select.inc.php git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@817 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/index.php | 3 +-- adminer/select.inc.php | 2 +- editor/index.php | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/adminer/index.php b/adminer/index.php index 80efcc17..dda4c90c 100644 --- a/adminer/index.php +++ b/adminer/index.php @@ -39,8 +39,7 @@ if (isset($_GET["download"])) { // edit form is used for default values and distinguished by checking isset($_GET["default"]) in edit.inc.php $_GET["edit"] = $_GET["default"]; } - if (isset($_GET["select"]) && $_POST && (!$_POST["delete"] && !$_POST["export"] && !$_POST["import"] && !$_POST["save"] && !$_POST["email"])) { - // POST form on select page is used to edit or clone data + if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) { $_GET["edit"] = $_GET["select"]; } if (isset($_GET["callf"])) { diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 5bcb1e73..15c88729 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -327,7 +327,7 @@ if (!$columns) { } echo " (" . lang('%d row(s)', $found_rows) . ') \n"; - echo (information_schema($_GET["db"]) ? "" : "
" . lang('Edit') . "
\n"); + echo (information_schema($_GET["db"]) ? "" : "
" . lang('Edit') . "
\n"); echo "
" . lang('Export') . "
$dump_output $dump_format
\n"; } $result->free(); diff --git a/editor/index.php b/editor/index.php index 7cb59555..3f559c17 100644 --- a/editor/index.php +++ b/editor/index.php @@ -23,8 +23,7 @@ if (isset($_GET["download"])) { // posted form with no data means exceeded post_max_size because Adminer always sends token at least $error = lang('Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.'); } - if (isset($_GET["select"]) && $_POST && (!$_POST["delete"] && !$_POST["export"] && !$_POST["import"] && !$_POST["save"] && !$_POST["email"])) { - // POST form on select page is used to edit or clone data + if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) { $_GET["edit"] = $_GET["select"]; } if (isset($_GET["edit"])) {