Changeset 28319

Show
Ignore:
Timestamp:
26.09.2013 18:36:13 (6 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.

Files:
1 modified

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!