|
...
|
...
|
@@ -593,3 +593,9 @@ function fixup_newlines($string)
|
|
593
|
593
|
$string = str_replace(array("\\r\\n", "\\n\\r", "\\r", "\\n"), "<br />", $string);
|
|
594
|
594
|
return $string;
|
|
595
|
595
|
}
|
|
|
596
|
+
|
|
|
597
|
+// ---- Modernization shims (PHP 8.x) ------------------------------------
|
|
|
598
|
+// utf8_encode()/utf8_decode() are deprecated as of PHP 8.2 and removed in PHP 9.
|
|
|
599
|
+if(!function_exists('utf8_encode')) { function utf8_encode($s) { return iconv('ISO-8859-1', 'UTF-8', $s); } }
|
|
|
600
|
+if(!function_exists('utf8_decode')) { function utf8_decode($s) { return iconv('UTF-8', 'ISO-8859-1', $s); } }
|
|
|
601
|
+?>
|