summaryrefslogtreecommitdiff
path: root/core/controllers/photos.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/controllers/photos.php')
-rw-r--r--core/controllers/photos.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/controllers/photos.php b/core/controllers/photos.php
index 143c3bb8..7a599f4b 100644
--- a/core/controllers/photos.php
+++ b/core/controllers/photos.php
@@ -35,4 +35,13 @@ class Photos_Controller extends Items_Controller {
print $template;
}
+
+ /**
+ * @see Rest_Controller::_form_add($parameters)
+ */
+ public function _form_add($parent_id) {
+ $parent = ORM::factory("item", $parent_id);
+
+ print photo::get_add_form($parent)->render();
+ }
}