Changeset 12687


Ignore:
Timestamp:
2006-09-06T14:21:19+12:00 (18 years ago)
Author:
kjdon
Message:

moved 'use DBI' from the start to 'require DBI' in the read function - don't load it unless we have to. This way we can still run pluginfo.pl on DBPlug even if the module is not installed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/DBPlug.pm

    r12270 r12687  
    4040use unicode;
    4141
    42 use DBI; # database independent stuff
     42#use DBI; # database independent stuff
    4343
    4444sub BEGIN {
     
    8787    my ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs, $total_count, $gli) = @_;
    8888
     89   
    8990    # see if we can handle the passed file...
    9091    my ($block_status,$filename) = $self->read_block(@_);   
     
    9697    print $outhandle "DBPlug: processing $file\n"
    9798    if $self->{'verbosity'} > 1;
    98    
     99    require DBI; # database independent stuff
     100
    99101    # calculate the document hash, for document ids
    100102    my $hash="";
Note: See TracChangeset for help on using the changeset viewer.