[checklang] Don't normalize languages to lc.

"serendipity_lang_pt_PT.inc.php" is mixed
case and won't be found if languages are
normalized to lowercase.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2019-08-18 01:48:48 +02:00
parent 75a6309fe3
commit 2d7c9a0db2

View File

@ -11,7 +11,8 @@ function get_langs($lang_dir='.') {
if(!preg_match('/^serendipity_lang_(.+)\.inc\.php$/', $file, $matches)) {
continue;
} else {
$languages[] = strtolower($matches[1]);
# $languages[] = strtolower($matches[1]);
$languages[] = $matches[1];
}
}
}