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:
parent
3e4bd48ed3
commit
5255997eba
@ -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 . '}');
|
||||
|
Loading…
Reference in New Issue
Block a user