phpBB

Code Changes

File: phpbb/search/fulltext_mysql.php

  Unmodified   Added   Modified   Removed
Line 188Line 188
		}

$sql = 'SHOW VARIABLES

		}

$sql = 'SHOW VARIABLES

			LIKE \'ft\_%\'';

			LIKE \'%ft\_%\'';

		$result = $this->db->sql_query($sql);

$mysql_info = array();

		$result = $this->db->sql_query($sql);

$mysql_info = array();

Line 198Line 198
		}
$this->db->sql_freeresult($result);


		}
$this->db->sql_freeresult($result);


 
		if ($engine === 'MyISAM')
{

		$this->config->set('fulltext_mysql_max_word_len', $mysql_info['ft_max_word_len']);
$this->config->set('fulltext_mysql_min_word_len', $mysql_info['ft_min_word_len']);

		$this->config->set('fulltext_mysql_max_word_len', $mysql_info['ft_max_word_len']);
$this->config->set('fulltext_mysql_min_word_len', $mysql_info['ft_min_word_len']);

 
		}
else if ($engine === 'InnoDB')
{
$this->config->set('fulltext_mysql_max_word_len', $mysql_info['innodb_ft_max_token_size']);
$this->config->set('fulltext_mysql_min_word_len', $mysql_info['innodb_ft_min_token_size']);
}


return false;
}


return false;
}