Skip to content

Commit 22e8306

Browse files
author
Vincent Lequertier
committed
Check if the paths are directories
1 parent 6bbc883 commit 22e8306

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/scripts/tmx_mozillaorg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ error_log('Mozilla.org: extraction of strings');
1313

1414
foreach (Files::getFilenamesInFolder(GIT . 'mozilla_org/') as $locale) {
1515
$path = GIT . "mozilla_org/{$locale}/";
16+
17+
if (! is_dir($path)) {
18+
continue;
19+
}
20+
1621
$mozilla_org_files = Dotlang::getLangFilesList($path);
1722

1823
$mozilla_org_files = array_map(

0 commit comments

Comments
 (0)