diff options
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/search/fulltext_mysql.php | 11 | 
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  | 
