summaryrefslogtreecommitdiff
path: root/inc/mod/pages.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-04 21:17:38 -0400
committerczaks <marcin@6irc.net>2013-08-04 21:17:38 -0400
commitf494b34562e555edb4c7ba14ce8444a001f36d00 (patch)
tree5503897969e7f82f95c3607f78e3cbc3f9c8f79f /inc/mod/pages.php
parent7407593ec5b3b3857719a72e7bf98e0fcae4e929 (diff)
parent0c829aa8f6fb592c15086e8b2b0276fd862e89f1 (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: inc/image.php
Diffstat (limited to 'inc/mod/pages.php')
-rw-r--r--inc/mod/pages.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 0a9f825b..706d747d 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -480,7 +480,12 @@ function mod_new_board() {
if (!openBoard($_POST['uri']))
error(_("Couldn't open board after creation."));
- query(Element('posts.sql', array('board' => $board['uri']))) or error(db_error());
+ $query = Element('posts.sql', array('board' => $board['uri']));
+
+ if (mysql_version() < 50503)
+ $query = preg_replace('/(CHARSET=|CHARACTER SET )utf8mb4/', '$1utf8', $query);
+
+ query($query) or error(db_error());
if ($config['cache']['enabled'])
cache::delete('all_boards');