forked from ZwiiCMS-Team/ZwiiCMS
pretty print
This commit is contained in:
parent
abd64c2a9b
commit
903c4e703c
@ -142,7 +142,8 @@ class JsonDb extends \Prowebcraft\Dot
|
|||||||
*/
|
*/
|
||||||
public function save()
|
public function save()
|
||||||
{
|
{
|
||||||
$v = json_encode($this->data, JSON_UNESCAPED_UNICODE | LOCK_EX);
|
//$v = json_encode($this->data, JSON_UNESCAPED_UNICODE | LOCK_EX);
|
||||||
|
$v = json_encode($this->data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | LOCK_EX);
|
||||||
$l = strlen($v);
|
$l = strlen($v);
|
||||||
$t = 0;
|
$t = 0;
|
||||||
while ($t < 5) {
|
while ($t < 5) {
|
||||||
|
Loading…
Reference in New Issue
Block a user