summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-16 19:23:41 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-16 19:23:41 +0000
commit1a2cb5ff043d19736f45d2e845eb44bd32305afe (patch)
tree5fbdaddf1fcddfccf86e950cee315b626fd3c8a2 /modules/comment/helpers/comment.php
parentb6de9859223ad4521ea9aef147534607c5a0a4d5 (diff)
Put _method into the edit form's url; Implement Comment::_put() properly
Diffstat (limited to 'modules/comment/helpers/comment.php')
-rw-r--r--modules/comment/helpers/comment.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index 8352fae4..b5d57829 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -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);