summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/quick.php
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2009-12-22 23:34:50 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2009-12-22 23:34:50 +0000
commit5855c4333ce6929c63d5639c7623152d80447d47 (patch)
treee2a22c1b7c6d95539fd63984622124deb934b875 /modules/gallery/controllers/quick.php
parent1baaeeefe81ef1a96153a050e9307d99768dd0df (diff)
parent86e0bc863a1c6739a9cd153931c099307e4c1000 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/quick.php')
-rw-r--r--modules/gallery/controllers/quick.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php
index f2a77033..7f1ad43b 100644
--- a/modules/gallery/controllers/quick.php
+++ b/modules/gallery/controllers/quick.php
@@ -131,11 +131,15 @@ class Quick_Controller extends Controller {
access::required("view", $item);
access::required("edit", $item);
- if ($item->is_album()) {
- $form = album::get_edit_form($item);
- } else {
- $form = photo::get_edit_form($item);
+ switch ($item->type) {
+ case "album":
+ return print album::get_edit_form($item);
+
+ case "photo":
+ return print photo::get_edit_form($item);
+
+ case "movie":
+ return print movie::get_edit_form($item);
}
- print $form;
}
}