Skip to content
Snippets Groups Projects
Commit d0364194 authored by Thomas Müller's avatar Thomas Müller
Browse files

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

Add warning for broken l10n json files
parents 0c1a8c95 ef76998e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment