mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
filenames and directories are lowercase only
git-svn-id: file:///svn/phpbb/trunk@6466 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -945,31 +945,31 @@ function utf8_case_fold($text, $option = 'full')
|
||||
global $phpbb_root_path, $phpEx;
|
||||
|
||||
// common is always set
|
||||
if (!isset($uniarray['C']))
|
||||
if (!isset($uniarray['c']))
|
||||
{
|
||||
$uniarray['C'] = include($phpbb_root_path . 'includes/utf/data/case_fold_C.' . $phpEx);
|
||||
$uniarray['c'] = include_once($phpbb_root_path . 'includes/utf/data/case_fold_c.' . $phpEx);
|
||||
}
|
||||
|
||||
// only set full if we need to
|
||||
if ($option === 'full' && !isset($uniarray['F']))
|
||||
if ($option === 'full' && !isset($uniarray['f']))
|
||||
{
|
||||
$uniarray['F'] = include($phpbb_root_path . 'includes/utf/data/case_fold_F.' . $phpEx);
|
||||
$uniarray['f'] = include_once($phpbb_root_path . 'includes/utf/data/case_fold_f.' . $phpEx);
|
||||
}
|
||||
|
||||
// only set simple if we need to
|
||||
if ($option !== 'full' && !isset($uniarray['S']))
|
||||
if ($option !== 'full' && !isset($uniarray['s']))
|
||||
{
|
||||
$uniarray['S'] = include($phpbb_root_path . 'includes/utf/data/case_fold_S.' . $phpEx);
|
||||
$uniarray['s'] = include_once($phpbb_root_path . 'includes/utf/data/case_fold_s.' . $phpEx);
|
||||
}
|
||||
|
||||
$text = strtr($text, $uniarray['C']);
|
||||
$text = strtr($text, $uniarray['c']);
|
||||
if ($option === 'full')
|
||||
{
|
||||
$text = strtr($text, $uniarray['F']);
|
||||
$text = strtr($text, $uniarray['f']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$text = strtr($text, $uniarray['S']);
|
||||
$text = strtr($text, $uniarray['s']);
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
Reference in New Issue
Block a user