diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-25 07:09:55 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-25 07:09:55 -0800 |
| commit | 5743b159c28888f2165cc4269d3302fea24fde7a (patch) | |
| tree | cbf99f8befbbe08c31c19b2bca4b3643103b2208 /modules/gallery/controllers/simple_uploader.php | |
| parent | f8a4c6edaa405494139aaf8eb6579a9488e73034 (diff) | |
| parent | 82ee5f9d338017c69331b2907f37a468ced8c66e (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/controllers/simple_uploader.php')
| -rw-r--r-- | modules/gallery/controllers/simple_uploader.php | 6 |
1 files changed, 3 insertions, 3 deletions
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)))); |
