mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
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
This commit is contained in:
parent
f613f72153
commit
ddff6f134c
@ -1656,6 +1656,12 @@ function utf8_case_fold_nfkc($text, $option = 'full')
|
|||||||
// do the case fold
|
// do the case fold
|
||||||
$text = utf8_case_fold($text, $option);
|
$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
|
// convert to NFKC
|
||||||
utf_normalizer::nfkc($text);
|
utf_normalizer::nfkc($text);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user