diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-09 17:22:59 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-16 16:16:11 +0200 |
commit | 8e757b343d92da5b53725f4574f8a222710a8864 (patch) | |
tree | 0f3e4dc4af3bba4418829b3f091fcc7985826b2b /lib/private/App | |
parent | 31bb65fa360d1f6bb5fb5e4569160e8f006b841a (diff) | |
download | nextcloud-server-8e757b343d92da5b53725f4574f8a222710a8864.tar.gz nextcloud-server-8e757b343d92da5b53725f4574f8a222710a8864.zip |
Fix apps without translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/App')
-rw-r--r-- | lib/private/App/CodeChecker/LanguageParseChecker.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/App/CodeChecker/LanguageParseChecker.php b/lib/private/App/CodeChecker/LanguageParseChecker.php index 29331d1e648..35354869339 100644 --- a/lib/private/App/CodeChecker/LanguageParseChecker.php +++ b/lib/private/App/CodeChecker/LanguageParseChecker.php @@ -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/'); |