Put _method into the edit form's url; Implement Comment::_put() properly

This commit is contained in:
Bharat Mediratta
2008-11-16 19:23:41 +00:00
parent b6de985922
commit 1a2cb5ff04
2 changed files with 3 additions and 7 deletions

View File

@@ -66,7 +66,8 @@ class Comment_Core {
}
static function get_edit_form($comment) {
$form = new Forge(url::site("comment/{$comment->id}"), "", "post", array("id" => "gCommentForm"));
$form = new Forge(
url::site("comment/{$comment->id}?_method=put"), "", "post", array("id" => "gCommentForm"));
$group = $form->group(_("Edit Comment"));
$group->input("author") ->label(_("Author")) ->id("gAuthor") ->value($comment->author);
$group->input("email") ->label(_("Email")) ->id("gEmail") ->value($comment->email);