summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/simple_uploader.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-25 07:09:55 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-25 07:09:55 -0800
commit5743b159c28888f2165cc4269d3302fea24fde7a (patch)
treecbf99f8befbbe08c31c19b2bca4b3643103b2208 /modules/gallery/controllers/simple_uploader.php
parentf8a4c6edaa405494139aaf8eb6579a9488e73034 (diff)
parent82ee5f9d338017c69331b2907f37a468ced8c66e (diff)
Merge branch 'master' into talmdal_dev
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))));