1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Fix for mobile translations file

This commit is contained in:
Hillel Coren 2019-11-04 11:00:43 +02:00
parent 3e4bd48ed3
commit 5255997eba

View File

@ -94,9 +94,10 @@ class MobileLocalization extends Command
$start = strpos($data, '\'en\': {') + 8;
$end = strpos($data, '},', $start);
$data = substr($data, $start, $end - $start - 6);
$data = substr($data, $start, $end - $start - 5);
$data = str_replace("\n", "", $data);
$data = str_replace("\"", "\'", $data);
$data = str_replace("'", "\"", $data);
return json_decode('{' . $data . '}');