From: Marc Veron <[email protected]>
Language choice in Opac an Staff client was not preserved between Browser
sessions.
Changed expiry date of cookie 'KohaOpacLanguage' from '' (= expire after
session) to '+3y' (3 years from now)
To test:
- In a multilingual Koha istallation, choose a language.
- Log out, close all Browser instances. Go to login screen. Login should show
up in same language as before.
- Repeat with other languages.
modified: C4/Templates.pm
Signed-off-by: Julian Maurice <[email protected]>
---
C4/Templates.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/C4/Templates.pm b/C4/Templates.pm
index d6e3ce4..47bda04 100644
--- a/C4/Templates.pm
+++ b/C4/Templates.pm
@@ -300,7 +300,7 @@ sub setlanguagecookie {
my $cookie = $query->cookie(
-name => 'KohaOpacLanguage',
-value => $language,
- -expires => ''
+ -expires => '+3y'
);
print $query->redirect(
-uri => $uri,
--
1.7.10
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/