filenames and directories are lowercase only

git-svn-id: file:///svn/phpbb/trunk@6466 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-10-08 11:21:40 +00:00
parent df20358f6d
commit 9a73fb26b2
6 changed files with 12 additions and 11 deletions

View file

@ -63,7 +63,7 @@ foreach ($array as $value)
foreach ($uniarray as $idx => $contents)
{
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) . ';');
fclose($fp);
}

View file

@ -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;
}

View file

@ -263,4 +263,5 @@ $words = array(
'ROTFLMAO',
'YMMV',
);
?>