filter l10n-* files
This commit is contained in:
parent
f4c9d4c067
commit
e96f6ffa52
|
@ -343,7 +343,7 @@ class OC_L10N{
|
||||||
if(is_dir($dir)) {
|
if(is_dir($dir)) {
|
||||||
$files=scandir($dir);
|
$files=scandir($dir);
|
||||||
foreach($files as $file) {
|
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);
|
$i = substr($file, 0, -4);
|
||||||
$available[] = $i;
|
$available[] = $i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue