diff options
author | Andrea Scarpino <andrea@archlinux.org> | 2010-11-18 09:49:37 +0100 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2010-12-05 05:03:33 +0100 |
commit | a417224988b0bbf16163c5e28fa4ca586ff2d707 (patch) | |
tree | 3f5af139356806a18679211588e9fdc1b9bdbaea /web/html/tu.php | |
parent | 53ad66e0a5b87ddff39dee7661810518574b6362 (diff) | |
download | aur-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.php | 4 |
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"; |