mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00: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:
parent
df20358f6d
commit
9a73fb26b2
6 changed files with 12 additions and 11 deletions
|
@ -63,7 +63,7 @@ foreach ($array as $value)
|
||||||
foreach ($uniarray as $idx => $contents)
|
foreach ($uniarray as $idx => $contents)
|
||||||
{
|
{
|
||||||
echo "Writing to case_fold_$idx.$phpEx\n";
|
echo "Writing to case_fold_$idx.$phpEx\n";
|
||||||
$fp = fopen($phpbb_root_path . 'includes/utf/data/case_fold_' . $idx . '.' . $phpEx, 'wb');
|
$fp = fopen($phpbb_root_path . 'includes/utf/data/case_fold_' . strtolower($idx) . '.' . $phpEx, 'wb');
|
||||||
fwrite($fp, '<?php return ' . my_var_export($contents) . ';');
|
fwrite($fp, '<?php return ' . my_var_export($contents) . ';');
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
|
@ -945,31 +945,31 @@ function utf8_case_fold($text, $option = 'full')
|
||||||
global $phpbb_root_path, $phpEx;
|
global $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
// common is always set
|
// 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
|
// 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
|
// 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')
|
if ($option === 'full')
|
||||||
{
|
{
|
||||||
$text = strtr($text, $uniarray['F']);
|
$text = strtr($text, $uniarray['f']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$text = strtr($text, $uniarray['S']);
|
$text = strtr($text, $uniarray['s']);
|
||||||
}
|
}
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
|
@ -264,3 +264,4 @@ $words = array(
|
||||||
'YMMV',
|
'YMMV',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
?>
|
Loading…
Add table
Reference in a new issue