From 81d4cc13dcae2f159ed937d4ce41e1df7d3c82b0 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Sun, 19 Jan 2014 20:27:49 -0500 Subject: voters.php: Remove extra call to pkgname_from_id() No need to store package ID and call pkgname_from_id() twice when the end goal is the package name. Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/html/voters.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'web/html/voters.php') diff --git a/web/html/voters.php b/web/html/voters.php index 9cedeef5..42fe2b58 100644 --- a/web/html/voters.php +++ b/web/html/voters.php @@ -4,8 +4,7 @@ include_once('aur.inc.php'); include_once('pkgfuncs.inc.php'); $SID = $_COOKIE['AURSID']; - -$pkgid = intval($_GET['ID']); +$pkgname = pkgname_from_id(intval($_GET['ID']); $votes = getvotes($pkgid); $atype = account_from_sid($SID); @@ -15,7 +14,7 @@ if ($atype == 'Trusted User' || $atype== 'Developer'): ?>
-

Votes for

+

Votes for

    -- cgit v1.2.3-24-g4f1b