summaryrefslogtreecommitdiffstats
path: root/web/html
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-04 23:03:33 -0500
commita417224988b0bbf16163c5e28fa4ca586ff2d707 (patch)
tree3f5af139356806a18679211588e9fdc1b9bdbaea /web/html
parent53ad66e0a5b87ddff39dee7661810518574b6362 (diff)
downloadaurweb-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')
-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 f0038a5..65f00c0 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";