use HTTP status codes with error messages

This commit is contained in:
Shish
2012-02-16 15:37:05 +00:00
parent 5fc7d6e574
commit af7704825b
17 changed files with 59 additions and 63 deletions

View File

@@ -123,7 +123,7 @@ class CommentList extends Extension {
$page->set_redirect(make_link("post/view/".int_escape($_POST['image_id'])));
}
catch(CommentPostingException $ex) {
$this->theme->display_error($page, "Comment Blocked", $ex->getMessage());
$this->theme->display_error(403, "Comment Blocked", $ex->getMessage());
}
}
}