diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-17 13:42:51 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-17 14:04:45 -0800 |
commit | 1067e68292852f524fceda4c6cf7cd5f7110b234 (patch) | |
tree | b42d9d2814a4a96bbdc63b5280cc22572402c0bb /modules/gallery/controllers/quick.php | |
parent | ade642cff4a4ca810f468723b04efc6f229916d8 (diff) |
Redesign the way that we consider page types to create buckets of page
types, and a subtype for specifics. Currently the top level bucket
collection, item, other
Here are the core subtypes so far:
collection: album, search, tag
item: movie, photo
other: login, reset, comment-fragment, comment
It's legal to create new page_subtypes whenever you want. Use the
appropriate page_type to get the coarse grain behavior that you want.
Diffstat (limited to 'modules/gallery/controllers/quick.php')
-rw-r--r-- | modules/gallery/controllers/quick.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php index a1e7dcc3..f2a77033 100644 --- a/modules/gallery/controllers/quick.php +++ b/modules/gallery/controllers/quick.php @@ -55,7 +55,7 @@ class Quick_Controller extends Controller { } } - if (Input::instance()->get("page_type") == "album") { + if (Input::instance()->get("page_type") == "collection") { print json_encode( array("src" => $item->thumb_url() . "?rnd=" . rand(), "width" => $item->thumb_width, @@ -118,7 +118,7 @@ class Quick_Controller extends Controller { $item->delete(); message::success($msg); - if (Input::instance()->get("page_type") == "album") { + if (Input::instance()->get("page_type") == "collection") { print json_encode(array("result" => "success", "reload" => 1)); } else { print json_encode(array("result" => "success", |