mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +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:
@@ -115,7 +115,7 @@ class PWPNG {
|
|||||||
'channels' => $ct,
|
'channels' => $ct,
|
||||||
'bits' => $bpc,
|
'bits' => $bpc,
|
||||||
'dp' => $dp,
|
'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,
|
'trans' => $trns,
|
||||||
'alpha' => $ct >= 4 ? true : false,
|
'alpha' => $ct >= 4 ? true : false,
|
||||||
'interlace' => $interlaced,
|
'interlace' => $interlaced,
|
||||||
|
Reference in New Issue
Block a user