From ddff6f134ce5303b7e7a28673717c3b9f803d016 Mon Sep 17 00:00:00 2001 From: David M Date: Mon, 16 Jul 2007 00:47:35 +0000 Subject: [PATCH] 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 --- phpBB/includes/utf/utf_tools.php | 6 ++++++ 1 file changed, 6 insertions(+) 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);