From 1e9d539acfb609dd7a6f085295f0d068d69cb077 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Mon, 20 Jan 2014 20:42:44 -0500 Subject: Further optimize voters.php to only need the package name * Extends changes in 81d4cc13dcae2f159ed937d4ce41e1df7d3c82b0 * Modify getvotes() to use the package name rather than package ID * Rename getvotes() to votes_for_pkgname() for clarity with new changes * Modify routing framework and links to now use package names for voters.php Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/html/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html/index.php') diff --git a/web/html/index.php b/web/html/index.php index ccc94d2..542d594 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -56,7 +56,7 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { include('pkgmerge.php'); return; case "voters": - $_GET['ID'] = pkgid_from_name($tokens[2]); + $_GET['N'] = $tokens[2]; include('voters.php'); return; default: -- cgit v1.2.3-70-g09d2