This commit is contained in:
Saophalkun Ponlu 2012-07-31 19:10:41 -07:00
commit f4158debb4
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ class Comment extends DataObject {
// set the variables which have changed
$comment->BaseClass = 'SiteTree';
$comment->URL = (isset($pageComment['CommenterURL'])) ? $pageComment['CommenterURL'] : "";
if((int)$pageComment['NeedsModeration'] == 0) $comment->Moderated = true;
$comment->write();
}