diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2000-11-21 16:53:32 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2000-11-21 16:53:32 +0000 |
commit | 01018b68304e917836df9bdc051ef34e7da88ef0 (patch) | |
tree | 750f0dc9e1c785987d761b2ffdfd3383046f9959 | |
parent | ebe3dddc564ed9900dfa3c23ff602eff7ba39ff1 (diff) | |
download | brdo-01018b68304e917836df9bdc051ef34e7da88ef0.tar.gz brdo-01018b68304e917836df9bdc051ef34e7da88ef0.tar.bz2 |
Fixed the "below your threshold" bug... it still had an old method in there. Zaphod is outdated as well, and Marvin doesn't contain a check for 0 in there.
-rw-r--r-- | themes/unconed/unconed.theme | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme index 39eca9231..3b3aa865b 100644 --- a/themes/unconed/unconed.theme +++ b/themes/unconed/unconed.theme @@ -200,11 +200,15 @@ <INPUT TYPE="submit" NAME="op" VALUE="Save"> </FONT> - <? - $result = mysql_query("SELECT COUNT(tid) FROM comments WHERE sid = $sid AND score < $threshold"); - if ($result && $number = mysql_result($result, 0)) { - ?> <BR><SMALL><FONT COLOR="<? echo "$this->fgcolor2"; ?>">There are at least <? echo $number; ?> comments below your threshold.</FONT></SMALL> <? - } + <? + + $number=discussion_num_filtered($sid, $pid); + if ($number>0) + { + ?> + <BR><SMALL>There are at least <? echo format_plural($number, "comment", "comments"); ?> comments below your threshold.</SMALL> + <? + } print "</TD></TR>"; print "</TABLE>"; |