Merge pull request #240 from sasky/master

Tiny bug fixes to work with SS4.
This commit is contained in:
Robbie Averill 2018-03-14 13:18:55 +13:00 committed by GitHub
commit 4385299f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ class CommentForm extends Form
$this->controller->setOwnerRecord($class::get()->byID($data['ParentID']));
}
if (!$this->controller->getOwnerRecord()) {
return $this->httpError(404);
return $this->getRequestHandler()->httpError(404);
}
// cache users data
@ -246,7 +246,7 @@ class CommentForm extends Form
// we want to show a notification if comments are moderated
if ($requireModeration && !$comment->IsSpam) {
Session::set('CommentsModerated', 1);
$this->getRequest()->getSession()->set('CommentsModerated', 1);
}
// clear the users comment since it passed validation