Merge pull request #20166 from owncloud/error-message-l10n-failure

Add warning for broken l10n json files
This commit is contained in:
Thomas Müller 2015-10-30 10:51:50 +01:00
commit d0364194fd
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,8 @@ class OC_L10N implements \OCP\IL10N {
$json = json_decode(file_get_contents($transFile), true);
if (!is_array($json)) {
$jsonError = json_last_error();
\OC::$server->getLogger()->warning("Failed to load $transFile - json error code: $jsonError", ['app' => 'l10n']);
return false;
}