MINOR Added BlogEntry_Controller->PageComments() as a temporary workaround to avoid deprecation warnings from new 'comments' module

This commit is contained in:
Ingo Schommer 2010-12-16 01:36:08 +00:00
parent eb52713954
commit 66f7263f8a

View File

@ -263,5 +263,16 @@ class BlogEntry_Controller extends Page_Controller {
Director::redirect($this->getParent()->Link());
}
}
/**
* Temporary workaround for compatibility with 'comments' module
* (has been extracted from sapphire/trunk in 12/2010).
*
* @return Form
*/
function PageComments() {
if($this->hasMethod('CommentsForm')) return $this->CommentsForm();
else return parent::PageComments();
}
}