[Rt-commit] r13433 - rt/3.8/trunk/lib/RT
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jun 19 16:39:01 EDT 2008
Author: sunnavy
Date: Thu Jun 19 16:39:00 2008
New Revision: 13433
Modified:
rt/3.8/trunk/lib/RT/CurrentUser.pm
Log:
don't set default lang to en if ::SystemUser in undef: we need undef to autodect lang
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 Jun 19 16:39:00 2008
@@ -216,12 +216,7 @@
|| !UNIVERSAL::can( $self->{'LangHandle'}, 'maketext' )
|| @_ )
{
- if ( !$RT::SystemUser
- || !$RT::SystemUser->id
- || ( $self->id || 0 ) == $RT::SystemUser->id ) {
- @_ = qw(en-US);
- }
- elsif ( my $lang = $self->Lang ) {
+ if ( my $lang = $self->Lang ) {
push @_, $lang;
}
More information about the Rt-commit
mailing list