Mercurial > hg > mgallery
comparison mgallery.inc.php @ 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 | db2cd0fcd64b |
comparison
equal
deleted
inserted
replaced
306:2c5ff6aa9845 | 307:a09452ac196e |
---|---|
216 // set their own formats, we can't do this check globally without scanning | 216 // set their own formats, we can't do this check globally without scanning |
217 // all the sub-albums etc .. maybe we'll do that some day. | 217 // all the sub-albums etc .. maybe we'll do that some day. |
218 if (($key == "tn_format" || $key == "med_format") && | 218 if (($key == "tn_format" || $key == "med_format") && |
219 $val == "webp" && version_compare(PHP_VERSION, "7.1.0") < 0) | 219 $val == "webp" && version_compare(PHP_VERSION, "7.1.0") < 0) |
220 { | 220 { |
221 die("ERROR: WEBP image format support requires PHP version 7.1 or later."); | 221 mgFatal("WebP image format support requires PHP version 7.1 or later.\n"); |
222 } | 222 } |
223 | 223 |
224 return $val; | 224 return $val; |
225 } | 225 } |
226 | 226 |