aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-06-05 01:41:26 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-06-05 01:41:26 +0530
commitad8386a64a0ea1c8f5811767e3bf7c84d9eda27d (patch)
tree65ad136a2935bcdfb0ea29c8d503d6a063d7fcbb /phpBB/includes
parenta3d15938047fb02a12276805427682beb36e5184 (diff)
parentd925c8d0daca58ce6f2a7b327e496c072c8a9fc8 (diff)
downloadforums-ad8386a64a0ea1c8f5811767e3bf7c84d9eda27d.tar
forums-ad8386a64a0ea1c8f5811767e3bf7c84d9eda27d.tar.gz
forums-ad8386a64a0ea1c8f5811767e3bf7c84d9eda27d.tar.bz2
forums-ad8386a64a0ea1c8f5811767e3bf7c84d9eda27d.tar.xz
forums-ad8386a64a0ea1c8f5811767e3bf7c84d9eda27d.zip
Merge remote-tracking branch 'bantu/ticket/11583' into develop-olympus
# By Andreas Fischer # Via Andreas Fischer * bantu/ticket/11583: [ticket/11583] Use a new lang key instead of giving the old one a new meaning. [ticket/11583] Allow FULLTEXT indexes on InnoDB when on MySQL 5.6.4 or higher.
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index bd4c003397..f28b8885e7 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -86,9 +86,16 @@ class fulltext_mysql extends search_backend
$engine = $info['Type'];
}
- if ($engine != 'MyISAM')
+ $fulltext_supported =
+ $engine === 'MyISAM' ||
+ // FULLTEXT is supported on InnoDB since MySQL 5.6.4 according to
+ // http://dev.mysql.com/doc/refman/5.6/en/innodb-storage-engine.html
+ $engine === 'InnoDB' &&
+ phpbb_version_compare($db->sql_server_info(true), '5.6.4', '>=');
+
+ if (!$fulltext_supported)
{
- return $user->lang['FULLTEXT_MYSQL_NOT_MYISAM'];
+ return $user->lang['FULLTEXT_MYSQL_NOT_SUPPORTED'];
}
$sql = 'SHOW VARIABLES