This commit is contained in:
GitHub Merge Button 2012-03-16 16:33:44 -07:00
commit 157e909658
1 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,8 @@ class Comment extends DataObject {
if($comments) {
while($pageComment = $comments->nextRecord()) {
// create a new comment from the older page comment
$comment = new Comment($pageComment);
$comment = new Comment();
$comment->update($pageComment);
// set the variables which have changed
$comment->BaseClass = 'SiteTree';
@ -244,4 +245,4 @@ class Comment extends DataObject {
$this->Parent()->Title
);
}
}
}