[Rt-commit] r15003 - rt/3.8/trunk/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Mon Aug 11 10:47:49 EDT 2008
Author: ruz
Date: Mon Aug 11 10:47:47 2008
New Revision: 15003
Modified:
rt/3.8/trunk/lib/RT/CurrentUser.pm
Log:
* if we have no CurrentUser's id then use ENV magic to get LANG
* don't use ENV if user is known and it's system user or nobody
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 Mon Aug 11 10:47:47 2008
@@ -219,7 +219,7 @@
if ( my $lang = $self->Lang ) {
push @_, $lang;
}
- elsif ( !$self->id || $self->id == ($RT::SystemUser->id||0) || $self->id == ($RT::Nobody->id||0) ) {
+ elsif ( $self->id && ($self->id == ($RT::SystemUser->id||0) || $self->id == ($RT::Nobody->id||0)) ) {
# don't use ENV magic for system users
push @_, 'en';
}
More information about the Rt-commit
mailing list