Skip to content

Commit

Permalink
Check if the paths are directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lequertier committed Dec 28, 2015
1 parent 6bbc883 commit 22e8306
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/scripts/tmx_mozillaorg
Expand Up @@ -13,6 +13,11 @@ error_log('Mozilla.org: extraction of strings');

foreach (Files::getFilenamesInFolder(GIT . 'mozilla_org/') as $locale) {
$path = GIT . "mozilla_org/{$locale}/";

if (! is_dir($path)) {
continue;
}

$mozilla_org_files = Dotlang::getLangFilesList($path);

$mozilla_org_files = array_map(
Expand Down

0 comments on commit 22e8306

Please sign in to comment.