Merge pull request #20166 from owncloud/error-message-l10n-failure
Add warning for broken l10n json files
This commit is contained in:
commit
d0364194fd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue