diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-12-23 11:22:43 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-12-23 11:22:43 -0800 |
commit | 2725d30c341c722e3ec52a2922a3c6cdcace2bf7 (patch) | |
tree | 7182a31712649c9b01add40bcf535e79d1c11e46 /modules/gallery/helpers | |
parent | 67f689646b9e12db300d34017f2dbf97676978f4 (diff) |
Use Albums_Controller::get_display_context as the default display context. Fixes #1812.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/item.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 |