From 82ee5f9d338017c69331b2907f37a468ced8c66e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 24 Nov 2009 16:37:59 -0800 Subject: Make get_add_form private and use it non-statically. --- modules/gallery/controllers/simple_uploader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/gallery/controllers/simple_uploader.php b/modules/gallery/controllers/simple_uploader.php index 255d5df2..37753ff3 100644 --- a/modules/gallery/controllers/simple_uploader.php +++ b/modules/gallery/controllers/simple_uploader.php @@ -26,7 +26,7 @@ class Simple_Uploader_Controller extends Controller { $item = $item->parent(); } - print self::get_add_form($item); + print $this->_get_add_form($item); } public function start() { @@ -67,7 +67,7 @@ class Simple_Uploader_Controller extends Controller { // We currently have no way of showing errors if validation fails, so only call our event // handlers if validation passes. - $form = self::get_add_form($album); + $form = $this->_get_add_form($album); if ($form->validate()) { module::event("add_photos_form_completed", $item, $form); } @@ -95,7 +95,7 @@ class Simple_Uploader_Controller extends Controller { print json_encode(array("result" => "success")); } - public function get_add_form($album) { + private function _get_add_form($album) { $form = new Forge("simple_uploader/finish", "", "post", array("id" => "g-add-photos-form")); $group = $form->group("add_photos") ->label(t("Add photos to %album_title", array("album_title" => html::purify($album->title)))); -- cgit v1.2.3