[Rt-commit] r14701 - rt/3.8/trunk/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Thu Jul 31 22:16:12 EDT 2008
Author: ruz
Date: Thu Jul 31 22:16:12 2008
New Revision: 14701
Modified:
rt/3.8/trunk/lib/RT/CurrentUser.pm
Log:
* when getting a lnaguage handle for system users,
don't use ENV magic and always fallback to english.
Otherwise some parts in templates could be localized
using language preferences defined in browser of first visitor
Modified: rt/3.8/trunk/lib/RT/CurrentUser.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/CurrentUser.pm (original)
+++ rt/3.8/trunk/lib/RT/CurrentUser.pm Thu Jul 31 22:16:12 2008
@@ -219,6 +219,10 @@
if ( my $lang = $self->Lang ) {
push @_, $lang;
}
+ elsif ( $self->id == $RT::SystemUser->id || $self->id == $RT::Nobody->id ) {
+ # don't use ENV magic for system users
+ push @_, 'en';
+ }
$self->{'LangHandle'} = RT::I18N->get_handle(@_);
}
More information about the Rt-commit
mailing list