From b5d5d8db915a0c53fccde5948a9f281c1b2d8558 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 18 Feb 2009 17:30:33 +0100 Subject: [PATCH] Bug Fixing: Amazon elements would not display at OPAC Owed to a change in systempreferences name in templates, amazon elements would not display This patch creates OPACAmazonContent value for templates. Signed-off-by: Henri-Damien LAURENT --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 4116292b06..0887103287 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -302,7 +302,7 @@ sub get_template_and_user { $LibraryNameTitle =~ s/<(?:\/?)(?:br|p)\s*(?:\/?)>/ /sgi; $LibraryNameTitle =~ s/<(?:[^<>'"]|'(?:[^']*)'|"(?:[^"]*)")*>//sg; $template->param( - AmazonContent => "" . C4::Context->preference("AmazonContent"), + OPACAmazonContent => "" . C4::Context->preference("OPACAmazonContent"), AnonSuggestions => "" . C4::Context->preference("AnonSuggestions"), AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), LibraryName => "" . C4::Context->preference("LibraryName"), -- 2.39.5