From 4beea9e8c08ac3b70427a90e53d9c208e92cbe94 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 24 Mar 2012 16:27:03 +1300 Subject: [PATCH] BUGFIX: Don't rely on existence of SiteTree::PageComments. --- code/BlogEntry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/BlogEntry.php b/code/BlogEntry.php index 862b07c..a17acd8 100644 --- a/code/BlogEntry.php +++ b/code/BlogEntry.php @@ -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(); } }