Browse Source

Enhancing error message

Peter Hoffmann 8 years ago
parent
commit
9d489a5bfa
1 changed files with 3 additions and 3 deletions
  1. 3 3
      plugins/check/index.php

+ 3 - 3
plugins/check/index.php

@@ -91,9 +91,9 @@ if ($database->server_version<50500) echo('Warning: Lychee uses the GBK charset
 
 # About GD
 $gdVersion = gd_info();
-if (!$gdVersion['JPEG Support'])	$error .= ('Error: No GD without jpeg support' . PHP_EOL);
-if (!$gdVersion['PNG Support'])	  $error .= ('Error: No GD without png support' . PHP_EOL);
-if (!$gdVersion['GIF Read Support'] || !$gdVersion['GIF Create Support'])	  $error .= ('Error: No GD without full gif support' . PHP_EOL);
+if (!$gdVersion['JPEG Support'])	$error .= ('Error: PHP gd extension without jpeg support' . PHP_EOL);
+if (!$gdVersion['PNG Support'])	  $error .= ('Error: PHP gd extension without png support' . PHP_EOL);
+if (!$gdVersion['GIF Read Support'] || !$gdVersion['GIF Create Support'])	  $error .= ('Error: PHP gd extension without full gif support' . PHP_EOL);
 
 # Output
 if ($error==='')	echo('No critical problems found. Lychee should work without problems!' . PHP_EOL);