summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/quick.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-23 21:42:25 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-23 21:42:25 -0700
commite44053f692109069977c097ecd24c45ab8e2f228 (patch)
tree892b0b364eb0080f89965d68010009755691c0cb /modules/gallery/controllers/quick.php
parentf9dbd4eb2feede5381d481f473bf7f0a77b49e4a (diff)
Cache the page_type in pane() instead of looking it up twice.
Diffstat (limited to 'modules/gallery/controllers/quick.php')
-rw-r--r--modules/gallery/controllers/quick.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php
index 6203728c..e89d9701 100644
--- a/modules/gallery/controllers/quick.php
+++ b/modules/gallery/controllers/quick.php
@@ -25,10 +25,10 @@ class Quick_Controller extends Controller {
}
$view = new View("quick_pane.html");
- $view->button_list =
- gallery_quick::get_quick_buttons($item, Input::instance()->get("page_type"));
+ $page_type = Input::instance()->get("page_type");
+ $view->button_list = gallery_quick::get_quick_buttons($item, $page_type);
$view->item = $item;
- $view->page_type = Input::instance()->get("page_type");
+ $view->page_type = $page_type;
print $view;
}