1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

remove code for outdated mysql version

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

View File

@ -985,8 +985,6 @@ if ($step == 0) {
$sql_errors = '';
foreach ($queries as $query) {
if ($mysql_version < 50503)
$query = preg_replace('/(CHARSET=|CHARACTER SET )utf8mb4/', '$1utf8', $query);
$query = preg_replace('/^([\w\s]*)`([0-9a-zA-Z$_\x{0080}-\x{FFFF}]+)`/u', '$1``$2``', $query);
if (!query($query))
$sql_errors .= '<li>' . db_error() . '</li>';