summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-03 02:11:16 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-03 02:11:16 -0400
commite35467e3b998ea2fd8800dd3722a1e9508b0ce2e (patch)
tree3da1f9ea3294e1a9b88502e760707104b23ab9ac /install.php
parentea1fe528a44d066e82d1bbb07f6ecefc52ec4e18 (diff)
Fix install for MySQL < 5.5.3
Diffstat (limited to 'install.php')
-rw-r--r--install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.php b/install.php
index 82ba5b8b..81b2e136 100644
--- a/install.php
+++ b/install.php
@@ -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