remove json lib. depriciate Tools::json function use php function

This commit is contained in:
shreesh arora
2021-03-05 19:35:08 +05:30
parent 82b30db256
commit 659d5b312f
94 changed files with 381 additions and 1248 deletions

View File

@@ -204,7 +204,7 @@ class AddressControllerCore extends FrontController
'hasError' => (bool)$this->errors,
'errors' => $this->errors
);
$this->ajaxDie(Tools::jsonEncode($return));
$this->ajaxDie(json_encode($return));
}
}
@@ -231,7 +231,7 @@ class AddressControllerCore extends FrontController
'id_address_delivery' => (int)$this->context->cart->id_address_delivery,
'id_address_invoice' => (int)$this->context->cart->id_address_invoice
);
$this->ajaxDie(Tools::jsonEncode($return));
$this->ajaxDie(json_encode($return));
}
// Redirect to old page or current page
@@ -364,7 +364,7 @@ class AddressControllerCore extends FrontController
'hasError' => !empty($this->errors),
'errors' => $this->errors
);
$this->ajaxDie(Tools::jsonEncode($return));
$this->ajaxDie(json_encode($return));
}
}
}