aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/utf
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-07-16 00:47:35 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-07-16 00:47:35 +0000
commitddff6f134ce5303b7e7a28673717c3b9f803d016 (patch)
tree24520a55a7c80a8319b71884cfc8a10c6e2538ad /phpBB/includes/utf
parentf613f721531aed835a641b5456afa1808949f02b (diff)
downloadforums-ddff6f134ce5303b7e7a28673717c3b9f803d016.tar
forums-ddff6f134ce5303b7e7a28673717c3b9f803d016.tar.gz
forums-ddff6f134ce5303b7e7a28673717c3b9f803d016.tar.bz2
forums-ddff6f134ce5303b7e7a28673717c3b9f803d016.tar.xz
forums-ddff6f134ce5303b7e7a28673717c3b9f803d016.zip
make sure the class exists before we try to normalize with it
git-svn-id: file:///svn/phpbb/trunk@7892 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/utf')
-rw-r--r--phpBB/includes/utf/utf_tools.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/utf/utf_tools.php b/phpBB/includes/utf/utf_tools.php
index 0c6b5d0006..c9a79cc0df 100644
--- a/phpBB/includes/utf/utf_tools.php
+++ b/phpBB/includes/utf/utf_tools.php
@@ -1656,6 +1656,12 @@ function utf8_case_fold_nfkc($text, $option = 'full')
// do the case fold
$text = utf8_case_fold($text, $option);
+ if (!class_exists('utf_normalizer'))
+ {
+ global $phpbb_root_path, $phpEx;
+ include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx);
+ }
+
// convert to NFKC
utf_normalizer::nfkc($text);