From 3bda945c6f8a01ab7dcdf9a4b79a4bdbc464e3cd Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sun, 21 Jun 2009 23:32:25 +0000 Subject: [PATCH] Rename confusing print_page git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@732 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/functions.inc.php | 2 +- adminer/select.inc.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 262e3228..39dd099c 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -135,7 +135,7 @@ function remove_from_uri($param = "") { return preg_replace("~\\?$param=[^&]*&~", '?', preg_replace("~\\?$param=[^&]*\$|&$param=[^&]*~", '', $_SERVER["REQUEST_URI"])); } -function print_page($page) { +function print_pagination($page) { echo " " . ($page == $_GET["page"] ? $page + 1 : '' . ($page + 1) . ""); } diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 60a22949..dff0f66b 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -301,17 +301,17 @@ if (!$columns) { // display first, previous 3, next 3 and last page $max_page = floor(($found_rows - 1) / $limit); echo lang('Page') . ":"; - print_page(0); + print_pagination(0); if ($_GET["page"] > 3) { echo " ..."; } for ($i = max(1, $_GET["page"] - 2); $i < min($max_page, $_GET["page"] + 3); $i++) { - print_page($i); + print_pagination($i); } if ($_GET["page"] + 3 < $max_page) { echo " ..."; } - print_page($max_page); + print_pagination($max_page); } echo " (" . lang('%d row(s)', $found_rows) . ')

\n";