1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Rename confusing print_page

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@732 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-06-21 23:32:25 +00:00
parent b8ef9fb908
commit 3bda945c6f
2 changed files with 4 additions and 4 deletions

View File

@@ -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 : '<a href="' . htmlspecialchars(remove_from_uri("page") . ($page ? "&page=$page" : "")) . '">' . ($page + 1) . "</a>");
}