[Koha-patches] [PATCH] [SIGNED-OFF] Bug 4943: Search history cookie size limit
Julian Maurice
julian.maurice at biblibre.com
Wed Mar 30 12:03:23 CEST 2011
From: Matthias Meusburger <matthias.meusburger at biblibre.com>
Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>
---
opac/opac-search.pl | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/opac/opac-search.pl b/opac/opac-search.pl
index c145729..a38d6f9 100755
--- a/opac/opac-search.pl
+++ b/opac/opac-search.pl
@@ -504,6 +504,7 @@ for (my $i=0;$i<@servers;$i++) {
$template->param(ShowOpacRecentSearchLink => 1);
}
+ shift @recentSearches if (@recentSearches > 15);
# Pushing the cookie back
$newsearchcookie = $cgi->cookie(
-name => 'KohaOpacRecentSearches',
--
1.7.4.1
More information about the Koha-patches
mailing list