From: Joas Schilling Date: Tue, 9 May 2017 15:22:59 +0000 (+0200) Subject: Fix apps without translations X-Git-Tag: v12.0.0beta4~12^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e757b343d92da5b53725f4574f8a222710a8864;p=nextcloud-server.git Fix apps without translations Signed-off-by: Joas Schilling --- 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/');