1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-17 11:28:41 +01:00

remove code for outdated mysql version

This commit is contained in:
Lorenzo Yario 2024-04-07 06:05:52 -07:00 committed by GitHub
parent fa4a208549
commit 4551b47421
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2047,9 +2047,6 @@ function markup(&$body, $track_cites = false, $op = false) {
$body = str_replace("\r", '', $body);
$body = utf8tohtml($body);
if (mysql_version() < 50503)
$body = mb_encode_numericentity($body, array(0x010000, 0xffffff, 0, 0xffffff), 'UTF-8');
if ($config['markup_code']) {
$code_markup = array();
$body = preg_replace_callback($config['markup_code'], function($matches) use (&$code_markup) {