made image magick required
This commit is contained in:
parent
15fe4edfab
commit
a83e8b85c1
6 changed files with 45 additions and 40 deletions
|
|
@ -11,7 +11,6 @@ $|=1;
|
|||
|
||||
use strict;
|
||||
print "\nStarting WebGUI ".$WebGUI::VERSION."\n";
|
||||
$ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die "GATEWAY_INTERFACE not Perl!";
|
||||
|
||||
#----------------------------------------
|
||||
# Enable the mod_perl environment.
|
||||
|
|
@ -29,7 +28,7 @@ use CGI (); CGI->compile(':all');
|
|||
use CGI::Carp ();
|
||||
use CGI::Util ();
|
||||
use Digest::MD5 ();
|
||||
eval "use Image::Magick ();"; # eval, may not be installed
|
||||
use Image::Magick ();
|
||||
use File::Copy ();
|
||||
use File::Path ();
|
||||
use FileHandle ();
|
||||
|
|
|
|||
|
|
@ -239,11 +239,12 @@ if (eval { require Time::HiRes }) {
|
|||
}
|
||||
}
|
||||
|
||||
print "Image::Magick module (optional) .......... ";
|
||||
print "Image::Magick module ..................... ";
|
||||
if (eval { require Image::Magick }) {
|
||||
print "OK\n";
|
||||
} else {
|
||||
print "Not installed. Thumbnailing will be disabled.\n";
|
||||
print "Please install.\n";
|
||||
$prereq = 0;
|
||||
}
|
||||
|
||||
# this is here to insure they installed correctly.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue