Changeset 28319


Ignore:
Timestamp:
09/26/13 18:36:13 (8 years ago)
Author:
ak19
Message:

The replace-with-src-doc feature had stopped working. It needed Image/Size.pm, so INC needs to be updated in HTMLPlugin to include perllib/cpan for this.

File:
1 edited

Legend:

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

    r28196 r28319  
    4747use XMLParser;
    4848
    49 use Image::Size;
    5049use File::Copy;
    5150
    5251sub BEGIN {
    5352    @HTMLPlugin::ISA = ('ReadTextFile', 'HBPlugin');
    54 }
     53    die "GSDLHOME not set\n" unless defined $ENV{'GSDLHOME'};
     54    unshift (@INC, "$ENV{'GSDLHOME'}/perllib/cpan"); # for Image/Size.pm
     55}
     56
     57use Image::Size;
    5558
    5659use strict; # every perl program should have this!
Note: See TracChangeset for help on using the changeset viewer.