Show
Ignore:
Timestamp:
05/08/08 19:27:14 (23 months ago)
Author:
bchoate
Message:

Applying patch from Jay to reduce warnings under FastCGI for dynamic requires. BugID:79441

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-38/lib/MT/Meta.pm

    r2266 r2281  
    219219    my $subclass_file = $subclass . '.pm'; 
    220220    $subclass_file =~ s{::}{/}g; 
    221     eval { 
    222         require $subclass_file; 
    223         $subclass->import(); 
    224     }; 
     221    eval "# line " . __LINE__ . " " . __FILE__ . "\nno warnings 'all';require '$subclass_file';$subclass->import();"; 
    225222    if ($@) { 
    226223        ## Die if we get an unexpected error