From 9d489a5bfa829e7dec3a3b58d47c2dfd8c1e544d Mon Sep 17 00:00:00 2001 From: Peter Hoffmann Date: Fri, 25 Sep 2015 13:35:21 +0200 Subject: [PATCH] Enhancing error message --- plugins/check/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/check/index.php b/plugins/check/index.php index ca82f5c..7fa1bcd 100644 --- a/plugins/check/index.php +++ b/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);