(Grav GitSync) Automatic Commit from smokephil

This commit is contained in:
smokephil 2025-01-17 09:13:21 +01:00 committed by GitSync
parent 88e07926d9
commit 9d9feba04b
144 changed files with 7311 additions and 5467 deletions

View file

@ -57,19 +57,21 @@ class PHPModules extends Problem
$msg = 'PHP GD (Image Manipulation Library) is %s installed';
if (defined('GD_VERSION') && function_exists('gd_info')) {
$msg = $modules_success['gd'] = sprintf($msg, 'successfully');
$msg = sprintf($msg, 'successfully');
// Extra checks for Image support
$ginfo = gd_info();
$gda = array('PNG Support', 'JPEG Support', 'FreeType Support', 'GIF Read Support');
$gda = array('PNG Support', 'JPEG Support', 'FreeType Support', 'GIF Read Support', 'WebP Support', 'AVIF Support');
$gda_msg = '';
$problems_found = false;
foreach ($gda as $image_type) {
if (!$ginfo[$image_type]) {
if (!array_key_exists($image_type, $ginfo)) {
$problems_found = true;
$gda_msg = "missing $image_type, but is ";
break;
if($gda_msg !== '') {
$gda_msg .= ', ';
}
$gda_msg .= $image_type;
}
}