Fixed small problem with finding Imagemagick

git-svn-id: file:///svn/phpbb/trunk@5017 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt 2004-11-01 12:26:29 +00:00
parent 4a6cefcb15
commit fef9854c59

View file

@ -406,9 +406,8 @@ if ($stage == 0)
foreach ($locations as $location) foreach ($locations as $location)
{ {
if (@file_exists($location . 'convert' . $exe) && @is_readable($location . 'convert' . $exe) && @filesize($location . 'convert' . $exe) > 10000) if (@is_readable($location . 'mogrify' . $exe) && @filesize($location . 'mogrify' . $exe) > 3000)
{ {
print $location;
$img_imagick = str_replace('\\', '/', $location); $img_imagick = str_replace('\\', '/', $location);
continue; continue;
} }
@ -1464,4 +1463,4 @@ function connect_check_db($error_connect, &$error, &$dbms, &$table_prefix, &$dbh
// FUNCTIONS // FUNCTIONS
// --------- // ---------
?> ?>