diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index c39db003..2d304e71 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -1,4 +1,6 @@ getResponseNegotiator()->respond($this->getRequest()); } + /** + * Action handler for adding pages to a campaign + * + * @param array $data + * @param Form $form + * @return DBHTMLText|SS_HTTPResponse + */ public function addtocampaign($data, $form) { - $handler = new AddToCampaignHandler($form, $data); + $handler = AddToCampaignHandler::create($form, $data); return $handler->handle(); }