mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: Don't rely on existence of SiteTree::PageComments.
This commit is contained in:
parent
b91fdd0443
commit
4beea9e8c0
@ -270,7 +270,7 @@ class BlogEntry_Controller extends Page_Controller {
|
||||
*/
|
||||
function PageComments() {
|
||||
if($this->hasMethod('CommentsForm')) return $this->CommentsForm();
|
||||
else return parent::PageComments();
|
||||
else if(method_exists('Page_Controller', 'PageComments')) return parent::PageComments();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user