mirror of
https://github.com/nextcloud/server.git
synced 2024-08-11 02:11:21 +02:00
filter l10n-* files
This commit is contained in:
parent
f4c9d4c067
commit
e96f6ffa52
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user