Fix apps without translations

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-09 17:22:59 +02:00
parent 31bb65fa36
commit 8e757b343d
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@ class LanguageParseChecker {
throw new \RuntimeException("No app with given id <$appId> known.");
}
if (!is_dir($appPath . '/l10n/')) {
return [];
}
$errors = [];
$directory = new \DirectoryIterator($appPath . '/l10n/');