diff --git a/code/sitefeatures/PageComment.php b/code/sitefeatures/PageComment.php index e9741956..330b6dc1 100755 --- a/code/sitefeatures/PageComment.php +++ b/code/sitefeatures/PageComment.php @@ -72,6 +72,8 @@ class PageComment extends DataObject { function SpamClass() { if($this->getField('IsSpam')) { return 'spam'; + } else if($this->getField('NeedsModeration')) { + return 'unmoderated'; } else { return 'notspam'; } diff --git a/templates/PageCommentInterface_singlecomment.ss b/templates/PageCommentInterface_singlecomment.ss index 2f8a8de2..d2b5998c 100755 --- a/templates/PageCommentInterface_singlecomment.ss +++ b/templates/PageCommentInterface_singlecomment.ss @@ -1,7 +1,4 @@

- <% if NeedsModeration %> -

Unmoderated comment

- <% end_if %> $Comment.XML