summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/simple_uploader.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-24 16:37:59 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-24 16:37:59 -0800
commit82ee5f9d338017c69331b2907f37a468ced8c66e (patch)
treeabf19ad89ac81aff0191ab92472aa2190eda079c /modules/gallery/controllers/simple_uploader.php
parent52b12725eaa84c6e632b865140af70b66f094cc7 (diff)
Make get_add_form private and use it non-statically.
Diffstat (limited to 'modules/gallery/controllers/simple_uploader.php')
-rw-r--r--modules/gallery/controllers/simple_uploader.php6
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))));