summaryrefslogtreecommitdiff
path: root/includes/template.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-10-12 06:44:11 +0000
committerDries Buytaert <dries@buytaert.net>2000-10-12 06:44:11 +0000
commitb46f9a846fb90d3e9c0b569dd1e70f4923d3ef64 (patch)
treeb28391013225211debc0c0cac56847d724485a9f /includes/template.inc
parent50819393d07178f31a674142e9093e823eaa80e1 (diff)
downloadbrdo-b46f9a846fb90d3e9c0b569dd1e70f4923d3ef64.tar.gz
brdo-b46f9a846fb90d3e9c0b569dd1e70f4923d3ef64.tar.bz2
Bugfixes, amongst them:
- anonymous chicken was able to moderate commnets - "anonymous chicken" was displayed in the comment reply form - ... The only thing left to be done is to tackle (or continue tackling) the user accounts which in fact is quite some work. :o)
Diffstat (limited to 'includes/template.inc')
-rw-r--r--includes/template.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/template.inc b/includes/template.inc
index 08d469d94..8e86620a0 100644
--- a/includes/template.inc
+++ b/includes/template.inc
@@ -61,13 +61,13 @@ function display_old_headlines($theme, $num = 10) {
function display_comment_moderation($id, $author, $score, $votes) {
global $user, $comment_votes;
- if ($user && $user->userid != $author && !user_getHistory($user->history, "c$id")) {
+ if ($user->userid && $user->userid != $author && !user_getHistory($user->history, "c$id")) {
$output .= "<SELECT NAME=\"moderate[$id]\">\n";
foreach ($comment_votes as $key=>$value) $output .= " <OPTION VALUE=\"$value\">$key</OPTION>\n";
$output .= "</SELECT>\n";
}
else {
- $output .= "<TABLE BORDER=\"0\" CELLSPACING=\"1\" CELLPADDING=\"0\"><TR><TD>score:</TD><TD>$score</TD></TR><TR><TD>votes:</TD><TD>$votes</TR></TABLE>";
+ $output .= "<TABLE BORDER=\"0\" CELLSPACING=\"1\" CELLPADDING=\"0\"><TR><TD>score:</TD><TD>". format_data($score) ."</TD></TR><TR><TD>votes:</TD><TD>". format_data($votes) ."</TR></TABLE>";
}
print $output;