mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
Fix install for MySQL < 5.5.3
This commit is contained in:
parent
ea1fe528a4
commit
e35467e3b9
@ -619,7 +619,7 @@ if ($step == 0) {
|
||||
|
||||
sql_open();
|
||||
if (mysql_version() < 50503)
|
||||
$sql = str_replace('utf8', 'utf8mb4', $sql);
|
||||
$sql = preg_replace('/(CHARSET=|CHARACTER SET )utf8mb4/', '$1utf8', $sql);
|
||||
|
||||
// This code is probably horrible, but what I'm trying
|
||||
// to do is find all of the SQL queires and put them
|
||||
|
Loading…
Reference in New Issue
Block a user