changeset 307:a09452ac196e

Improve WebP PHP 7.1 requirement error message.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 03 Apr 2020 17:12:20 +0300
parents 2c5ff6aa9845
children b9530dda7ff0
files mgallery.inc.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.inc.php	Fri Apr 03 16:26:00 2020 +0300
+++ b/mgallery.inc.php	Fri Apr 03 17:12:20 2020 +0300
@@ -218,7 +218,7 @@
   if (($key == "tn_format" || $key == "med_format") &&
       $val == "webp" && version_compare(PHP_VERSION, "7.1.0") < 0)
   {
-    die("ERROR: WEBP image format support requires PHP version 7.1 or later.");
+    mgFatal("WebP image format support requires PHP version 7.1 or later.\n");
   }
 
   return $val;