From 8e757b343d92da5b53725f4574f8a222710a8864 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 May 2017 17:22:59 +0200 Subject: [PATCH] Fix apps without translations Signed-off-by: Joas Schilling --- lib/private/App/CodeChecker/LanguageParseChecker.php | 4 ++++ 1 file changed, 4 insertions(+) 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/'); -- 2.39.5