diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2012-11-12 13:41:58 +0100 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-27 08:48:06 -0500 |
commit | 764da977729aef331241d0cf0df77bd2e29d6256 (patch) | |
tree | ab75ebdaeb56dc051ef5528dfbf520e92ffa0a29 /phpBB/includes/search | |
parent | b453f359ff6dab58b0eaf94548c4e58110fb02ec (diff) | |
download | forums-764da977729aef331241d0cf0df77bd2e29d6256.tar forums-764da977729aef331241d0cf0df77bd2e29d6256.tar.gz forums-764da977729aef331241d0cf0df77bd2e29d6256.tar.bz2 forums-764da977729aef331241d0cf0df77bd2e29d6256.tar.xz forums-764da977729aef331241d0cf0df77bd2e29d6256.zip |
[ticket/11174] include utf_tools in mysql backend
when running tests include utf_tools file in the mysql search backend
PHPBB3-11174
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r-- | phpBB/includes/search/fulltext_mysql.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php index 58a4dd7d6a..cd5f0cef67 100644 --- a/phpBB/includes/search/fulltext_mysql.php +++ b/phpBB/includes/search/fulltext_mysql.php @@ -86,6 +86,14 @@ class phpbb_search_fulltext_mysql extends phpbb_search_base $this->word_length = array('min' => $this->config['fulltext_mysql_min_word_len'], 'max' => $this->config['fulltext_mysql_max_word_len']); + /** + * Load the UTF tools + */ + if (!function_exists('utf8_strlen')) + { + include($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); + } + $error = false; } |