BUGFIX: Don't rely on existence of SiteTree::PageComments.

This commit is contained in:
Sam Minnee 2012-03-24 16:27:03 +13:00
parent b91fdd0443
commit 4beea9e8c0

View File

@ -270,7 +270,7 @@ class BlogEntry_Controller extends Page_Controller {
*/ */
function PageComments() { function PageComments() {
if($this->hasMethod('CommentsForm')) return $this->CommentsForm(); if($this->hasMethod('CommentsForm')) return $this->CommentsForm();
else return parent::PageComments(); else if(method_exists('Page_Controller', 'PageComments')) return parent::PageComments();
} }
} }