[open-ils-commits] r13097 - trunk/Open-ILS/src/perlmods/OpenILS/WWW (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 7 17:29:36 EDT 2009
Author: erickson
Date: 2009-05-07 17:29:31 -0400 (Thu, 07 May 2009)
New Revision: 13097
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm
Log:
honor the locale cookie before the standard headers
Modified: trunk/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm 2009-05-07 01:22:03 UTC (rev 13096)
+++ trunk/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm 2009-05-07 21:29:31 UTC (rev 13097)
@@ -72,8 +72,8 @@
$ctx->{skin} = $cgi->cookie(OILS_HTTP_COOKIE_SKIN) || 'default';
$ctx->{theme} = $cgi->cookie(OILS_HTTP_COOKIE_THEME) || 'default';
$ctx->{locale} =
- $r->headers_in->get('Accept-Language') || # this will need some trimming
- $cgi->cookie(OILS_HTTP_COOKIE_LOCALE) || 'en-US';
+ $cgi->cookie(OILS_HTTP_COOKIE_LOCALE) ||
+ $r->headers_in->get('Accept-Language') || 'en-US'; # this will need some trimming
$r->log->debug('skin = ' . $ctx->{skin} . ' : theme = ' .
$ctx->{theme} . ' : locale = ' . $ctx->{locale});
return $ctx;
More information about the open-ils-commits
mailing list