1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Add PR #257 which replaces deprecated utf8_encode() with mb_convert_encoding() in PWPNG.php

Co-authored-by: jnessier <jnessier@users.noreply.github.com>
This commit is contained in:
Ryan Cramer
2023-02-03 10:13:34 -05:00
parent a3fa73aec6
commit b1313438ea

View File

@@ -115,7 +115,7 @@ class PWPNG {
'channels' => $ct,
'bits' => $bpc,
'dp' => $dp,
'palette' => (function_exists('utf8_encode') ? utf8_encode($pal) : $pal),
'palette' => (function_exists('mb_convert_encoding') ? mb_convert_encoding($pal, 'UTF-8', 'ISO-8859-1') : $pal),
'trans' => $trns,
'alpha' => $ct >= 4 ? true : false,
'interlace' => $interlaced,
@@ -149,4 +149,4 @@ class PWPNG {
$this->errors[] = $msg;
}
}
}