]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix apps without translations
authorJoas Schilling <coding@schilljs.com>
Tue, 9 May 2017 15:22:59 +0000 (17:22 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 16 May 2017 14:16:11 +0000 (16:16 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/App/CodeChecker/LanguageParseChecker.php

index 29331d1e648ad57455237e63beec710c67c6843b..35354869339777047e6a11f29e41b46f268097b0 100644 (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/');