From a8233ed9795e42bb013a4d860fa063d8710d71eb Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 25 Jan 2009 06:28:04 +0000 Subject: Undo the adding underscores to the id on forge generated forms --- core/helpers/photo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/photo.php') diff --git a/core/helpers/photo.php b/core/helpers/photo.php index 2b653481..a2958aec 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -96,7 +96,7 @@ class photo_Core { } static function get_add_form($parent) { - $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAdd_Photo_Form")); + $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAddPhotoForm")); $group = $form->group("add_photo")->label(t("Add Photo to %album_title", array("album_title" =>$parent->title))); $group->input("name")->label(t("Name")); $group->input("title")->label(t("Title")); @@ -109,7 +109,7 @@ class photo_Core { } static function get_edit_form($photo) { - $form = new Forge("photos/$photo->id", "", "post", array("id" => "gEdit_Photo_Form")); + $form = new Forge("photos/$photo->id", "", "post", array("id" => "gEditPhotoForm")); $form->hidden("_method")->value("put"); $group = $form->group("edit_photo")->label(t("Edit Photo")); $group->input("name")->label(t("Name"))->value($photo->name); -- cgit v1.2.3