aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-06-05 01:55:49 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-06-05 01:55:49 +0530
commit3931f7f3b9b4581c67b4e958f6cc9c2e13daccd5 (patch)
tree00d8e126d6a8b49c578830c2737cc23c1189dfc2 /phpBB/includes
parent7b7747cab687c0c2eae05d67110a1e09e1d528be (diff)
parentad8386a64a0ea1c8f5811767e3bf7c84d9eda27d (diff)
downloadforums-3931f7f3b9b4581c67b4e958f6cc9c2e13daccd5.tar
forums-3931f7f3b9b4581c67b4e958f6cc9c2e13daccd5.tar.gz
forums-3931f7f3b9b4581c67b4e958f6cc9c2e13daccd5.tar.bz2
forums-3931f7f3b9b4581c67b4e958f6cc9c2e13daccd5.tar.xz
forums-3931f7f3b9b4581c67b4e958f6cc9c2e13daccd5.zip
Merge branch 'develop-olympus' into develop
# By Andreas Fischer # Via Andreas Fischer (1) and Dhruv (1) * develop-olympus: [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. Conflicts: phpBB/includes/search/fulltext_mysql.php phpBB/language/en/acp/search.php
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 adaf025730..aa493c3281 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -163,9 +163,16 @@ class phpbb_search_fulltext_mysql extends phpbb_search_base
$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($this->db->sql_server_info(true), '5.6.4', '>=');
+
+ if (!$fulltext_supported)
{
- return $this->user->lang['FULLTEXT_MYSQL_NOT_MYISAM'];
+ return $this->user->lang['FULLTEXT_MYSQL_NOT_SUPPORTED'];
}
$sql = 'SHOW VARIABLES