Merge pull request #244 from shreesh-webkul/update-json

Remove pear JSON lib instead use PHP JSON library
This commit is contained in:
Rohit Jain
2021-10-14 18:01:19 +05:30
committed by GitHub
94 changed files with 371 additions and 1238 deletions

View File

@@ -142,8 +142,8 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate
*/
public function getContent()
{
$invoiceAddressPatternRules = Tools::jsonDecode(Configuration::get('PS_INVCE_INVOICE_ADDR_RULES'), true);
$deliveryAddressPatternRules = Tools::jsonDecode(Configuration::get('PS_INVCE_DELIVERY_ADDR_RULES'), true);
$invoiceAddressPatternRules = json_decode(Configuration::get('PS_INVCE_INVOICE_ADDR_RULES'), true);
$deliveryAddressPatternRules = json_decode(Configuration::get('PS_INVCE_DELIVERY_ADDR_RULES'), true);
$invoice_address = new Address((int)$this->order->id_address_invoice);
$country = new Country((int)$invoice_address->id_country);