summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-29 18:38:40 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-29 18:38:40 +0000
commit3c0be5156bd1f429e45f3eba4d97ea02217e55ee (patch)
tree55affa7335eeac9b6e10c4c9e7726aa6a444f6a7 /modules/comment/helpers
parent62cd05fb168b45e03cdca17add141e6651328373 (diff)
url::site is implicit in Forge actions, don't specify it a 2nd time
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index 79aa9ddc..3006d73d 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -53,7 +53,7 @@ class comment_Core {
}
static function get_add_form($item) {
- $form = new Forge(url::site("comments"), "", "post");
+ $form = new Forge("comments", "", "post");
$group = $form->group("add_comment")->label(_("Add comment"));
$group->input("author") ->label(_("Author")) ->id("gAuthor");
$group->input("email") ->label(_("Email")) ->id("gEmail");
@@ -65,8 +65,7 @@ class comment_Core {
}
static function get_edit_form($comment) {
- $form = new Forge(
- url::site("comments/{$comment->id}?_method=put"), "", "post");
+ $form = new Forge("comments/{$comment->id}?_method=put", "", "post");
$group = $form->group("edit_comment")->label(_("Edit comment"));
$group->input("author") ->label(_("Author")) ->id("gAuthor") ->value($comment->author);
$group->input("email") ->label(_("Email")) ->id("gEmail") ->value($comment->email);