Skip to content

Commit

Permalink
Merge branch '4.4.3/skip-extract-pm-require' into 4.4.3-releng
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnavy committed Jun 22, 2018
2 parents fb82702 + d044c16 commit 4df308e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/RT/I18N.pm
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ sub Init {
# Load language-specific functions
foreach my $file ( File::Glob::bsd_glob(substr(Cwd::abs_path(__FILE__), 0, -3) . "/*.pm") ) {
my ($lang) = ($file =~ /([^\\\/]+?)\.pm$/);
next if $lang eq 'Extract'; # Avoid loading non-language utility module
next unless grep $_ eq '*' || $_ eq $lang, @lang;
require $file;
}
Expand Down

0 comments on commit 4df308e

Please sign in to comment.