Skip to content

Commit

Permalink
Merge branch 'master', remote-tracking branch 'me/lh867-PERL5LIB'
Browse files Browse the repository at this point in the history
  • Loading branch information
tima committed Apr 2, 2011
3 parents 6cb4884 + 56f4f74 + 6cb4884 commit 09f0efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/MT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ sub init_config {
}
} ## end for my $meth (@mt_paths)

if ( my $local_lib = $cfg->PerlLocalLibPath ) {
if ( my $local_lib = $cfg->PERL5LIB || $cfg->PerlLocalLibPath ) {
$local_lib = [ $local_lib ] if ! 'ARRAY' eq ref $local_lib;
eval "use local::lib qw( @{$local_lib} )";
return $mt->trans_error(
Expand Down
4 changes: 3 additions & 1 deletion lib/MT/Core.pm
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ BEGIN {
'ImportPath' => { default => 'import', path => 1, },
'PluginPath' =>
{ default => 'plugins', path => 1, type => 'ARRAY', },
'PerlLocalLibPath' =>
'PerlLocalLibPath' => # This directive is deprecated.
{ default => undef, path => 1, type => 'ARRAY', },
'PERL5LIB' =>
{ default => undef, path => 1, type => 'ARRAY', },
'EnableArchivePaths' => { default => 0, },
'SearchTemplatePath' =>
Expand Down

0 comments on commit 09f0efc

Please sign in to comment.