From a74e3aea6f0bdde210c91622535af3e58aa1e9fd Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 9 Dec 2012 20:26:16 -0800 Subject: Eliminate the search context if we encounter an item that cannot be found in the search results. Fixes #1923. --- modules/gallery/helpers/item.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/gallery/helpers') diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php index d8b660d9..b739e8bd 100644 --- a/modules/gallery/helpers/item.php +++ b/modules/gallery/helpers/item.php @@ -414,6 +414,13 @@ class item_Core { } } + /** + * Get rid of the display context callback + */ + static function clear_display_context_callback() { + Cache::instance()->delete("display_context_" . $sid = Session::instance()->id()); + } + /** * Call the display context callback for the given item */ -- cgit v1.2.3