summaryrefslogtreecommitdiffstats
path: root/web/html/tu.php
diff options
context:
space:
mode:
authorAndrea Scarpino <andrea@archlinux.org>2010-11-18 09:49:37 +0100
committerLoui Chang <louipc.ist@gmail.com>2010-12-05 05:03:33 +0100
commita417224988b0bbf16163c5e28fa4ca586ff2d707 (patch)
tree3f5af139356806a18679211588e9fdc1b9bdbaea /web/html/tu.php
parent53ad66e0a5b87ddff39dee7661810518574b6362 (diff)
downloadaur-a417224988b0bbf16163c5e28fa4ca586ff2d707.tar.gz
aur-a417224988b0bbf16163c5e28fa4ca586ff2d707.tar.xz
Do not display current votes in All Votes, and rename it as Past Votes
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html/tu.php')
-rw-r--r--web/html/tu.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/tu.php b/web/html/tu.php
index f0038a58..65f00c0b 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -130,10 +130,10 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
?>
<?php
- $q = "SELECT * FROM TU_VoteInfo ORDER BY Submitted " . $order . $lim;
+ $q = "SELECT * FROM TU_VoteInfo WHERE End < " . time() . " ORDER BY Submitted " . $order . $lim;
$result = db_query($q, $dbh);
- $type = __("All Votes");
+ $type = __("Past Votes");
include("tu_list.php");
$qnext = "SELECT ID FROM TU_VoteInfo";