Changed instantiation of controller to ::create

This commit is contained in:
Aram Balakjian 2015-03-23 17:58:53 +00:00
parent 99cf501393
commit 00cb672bf5

View File

@ -108,7 +108,7 @@ class CommentsExtension extends DataExtension {
// do not include the comments on pages which don't have id's such as security pages
if($this->owner->ID < 0) return false;
$controller = new CommentingController();
$controller = CommentingController::create();
$controller->setOwnerRecord($this->owner);
$controller->setBaseClass($this->ownerBaseClass);
$controller->setOwnerController(Controller::curr());