filter l10n-* files

This commit is contained in:
Thomas Mueller 2013-02-14 17:24:06 +01:00
parent f4c9d4c067
commit e96f6ffa52

View file

@ -343,7 +343,7 @@ class OC_L10N{
if(is_dir($dir)) {
$files=scandir($dir);
foreach($files as $file) {
if(substr($file, -4, 4) == '.php') {
if(substr($file, -4, 4) === '.php' && substr($file, 0, 4) !== 'l10n') {
$i = substr($file, 0, -4);
$available[] = $i;
}