Bugzilla – Attachment 6486 Details for
Bug 7282
invalid language selection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7282: invalid language selection
0001-Bug-7282-invalid-language-selection.patch (text/plain), 981 bytes, created by
Sébastien Marie
on 2011-12-01 16:04:14 UTC
(
hide
)
Description:
Bug 7282: invalid language selection
Filename:
MIME Type:
Creator:
Sébastien Marie
Created:
2011-12-01 16:04:14 UTC
Size:
981 bytes
patch
obsolete
>From 67ab1ec8d4a77d13d9a95ed9358857586c6be7fd Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A8re=20S=C3=A9bastien=20Marie?= <semarie-koha@latrappe.fr> >Date: Thu, 1 Dec 2011 16:58:37 +0100 >Subject: [PATCH] Bug 7282: invalid language selection > >- restore the original behavior: call getlanguagecookie only if the cookie is present >--- > C4/Templates.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/Templates.pm b/C4/Templates.pm >index 73d94c2..0aaa1ff 100644 >--- a/C4/Templates.pm >+++ b/C4/Templates.pm >@@ -277,7 +277,8 @@ sub themelanguage { > my @languages = split(",", C4::Context->preference( > $is_intranet ? 'language' : 'opaclanguages')); > my $lang; >- $lang = getlanguagecookie($query); >+ $lang = getlanguagecookie($query) >+ if $query->cookie('KohaOpacLanguage'); > unless ($lang) { > my $http_accept_language = $ENV{ HTTP_ACCEPT_LANGUAGE }; > $lang = accept_language( $http_accept_language, >-- >1.7.2.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7282
:
6486
|
6487
|
6488
|
6489
|
6490
|
6491
|
6495