Changeset 2274

Show
Ignore:
Timestamp:
05/08/08 01:33:01 (4 months ago)
Author:
fumiakiy
Message:

Applied Jay's patch to allow plugins to have extlib directory. BugId:69660

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-38/lib/MT.pm.pre

    r2246 r2274  
    13131313                    my $yaml = 
    13141314                      File::Spec->catdir( $plugin_full_path, 'config.yaml' ); 
    1315                     my $libdir; 
    1316                     ( unshift @INC, $libdir ) 
    1317                       if -d ( $libdir = 
    1318                           File::Spec->catdir( $plugin_full_path, 'lib' ) ); 
     1315 
     1316                    foreach my $lib (qw(lib extlib)) { 
     1317                        $lib = File::Spec->catdir( $plugin_full_path, $lib ); 
     1318                        unshift @INC, $lib if -d $lib; 
     1319                    } 
     1320 
    13191321                    if ( -f $yaml ) { 
    13201322                        my $pclass =