Changeset 23752

Show
Ignore:
Timestamp:
02.03.2011 15:55:15 (9 years ago)
Author:
davidb
Message:

Missing @_ parameter needs to be passed on from AutoLoadConverter? methods to 'reflection' based methods called through 'eval' statements. This issue was noticed when enable-caching was used, as the appropriate part of the plugin did not have a valid 'base dir' for the cache directory.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/AutoLoadConverters.pm

    r22858 r23752  
    127127 
    128128    foreach my $converter (@{$self->{'converter_list'}}) { 
    129     eval "\$self->${converter}::init();"; 
     129    eval "\$self->${converter}::init(\@_);"; 
    130130    } 
    131131 
     
    136136 
    137137    foreach my $converter(@{$self->{'converter_list'}}) { 
    138     eval "\$self->${converter}::begin();"; 
     138    eval "\$self->${converter}::begin(\@_);"; 
    139139    } 
    140140} 
     
    144144 
    145145    foreach my $converter (@{$self->{'converter_list'}}) { 
    146     eval "\$self->${converter}::deinit();"; 
     146    eval "\$self->${converter}::deinit(\@_);"; 
    147147    } 
    148148