From 2725d30c341c722e3ec52a2922a3c6cdcace2bf7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 23 Dec 2011 11:22:43 -0800 Subject: Use Albums_Controller::get_display_context as the default display context. Fixes #1812. --- modules/gallery/helpers/item.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php index 0bb45e49..a0654a88 100644 --- a/modules/gallery/helpers/item.php +++ b/modules/gallery/helpers/item.php @@ -418,6 +418,9 @@ class item_Core { $args = Cache::instance()->get("display_context_" . $sid = Session::instance()->id()); $callback = $args[0]; $args[0] = $item; + if (!$callback) { + $callback = "Albums_Controller::get_display_context"; + } return call_user_func_array($callback, $args); } } \ No newline at end of file -- cgit v1.2.3