From 285afc202aae8bab0f6ee90a9eb4c96d2403105a Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 15 Apr 2013 14:45:49 -0700 Subject: [PATCH] Increase default select limit to 50 --- adminer/include/adminer.inc.php | 2 +- changes.txt | 1 + editor/include/adminer.inc.php | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index e65f3ad8..02d3da98 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -447,7 +447,7 @@ username.form['auth[driver]'].onchange(); * @return string expression to use in LIMIT, will be escaped */ function selectLimitProcess() { - return (isset($_GET["limit"]) ? $_GET["limit"] : "30"); + return (isset($_GET["limit"]) ? $_GET["limit"] : "50"); } /** Process length box in select diff --git a/changes.txt b/changes.txt index ebac5673..c69c62fe 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,6 @@ Adminer 3.6.4-dev: Display pagination on a fixed position +Increase default select limit to 50 Display SQL edit form on Ctrl+click on the select query Recover original view, trigger, routine if creating fails Clear column name after resetting search (bug #3601200) diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index 9acc08dc..c31f3273 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -272,7 +272,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 function selectLimitPrint($limit) { echo "
" . lang('Limit') . "
"; //
for easy styling - echo html_select("limit", array("", "30", "100"), $limit); + echo html_select("limit", array("", "50", "100"), $limit); echo "
\n"; } @@ -374,7 +374,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 } function selectLimitProcess() { - return (isset($_GET["limit"]) ? $_GET["limit"] : "30"); + return (isset($_GET["limit"]) ? $_GET["limit"] : "50"); } function selectLengthProcess() {