Skip to content

Commit

Permalink
Release v7.8.2
Browse files Browse the repository at this point in the history
Fix deprecations
  • Loading branch information
alexhernandezord authored Apr 17, 2023
2 parents 567ef3b + 5991c2a commit 8df3f7f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Change Log

#### [v7.8.2](https://github.com/aplazame/prestashop/tree/v7.8.2) (2023-04-17)

* [FIX] Deprecations.

#### [v7.8.1](https://github.com/aplazame/prestashop/tree/v7.8.1) (2023-03-14)

* [ADD] Widget improvements.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version ?= v7.8.1
version ?= v7.8.2
errors = $(shell find aplazame -type f -name "*.php" -exec php -l "{}" \;| grep "Errors parsing ";)

syntax.checker:
Expand Down
2 changes: 1 addition & 1 deletion aplazame/aplazame.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct()
{
$this->name = 'aplazame';
$this->tab = 'payments_gateways';
$this->version = '7.8.1';
$this->version = '7.8.2';
$this->author = 'Aplazame SL';
$this->author_uri = 'https://aplazame.com';
$this->module_key = '64b13ea3527b4df3fe2e3fc1526ce515';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ public function postProcess()
$method = Tools::getValue('method');
$path = Tools::getValue('path');
$data = Tools::getValue('data');
$data = Tools::jsonDecode($data);
$data = json_decode($data);
if (!$data) {
$data = array();
}

$response = $this->aplazame->callToRest($method, $path, $data);

die(Tools::jsonEncode($response));
die(json_encode($response));
}
}
4 changes: 2 additions & 2 deletions aplazame/controllers/front/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ public function postProcess()
{
$path = Tools::getValue('path', '');
$queryArguments = $_GET;
$payload = Tools::jsonDecode(Tools::file_get_contents('php://input'), true);
$payload = json_decode(Tools::file_get_contents('php://input'), true);

$response = $this->route($path, $queryArguments, $payload);

$this->http_response_code($response['status_code']);
header('Content-Type: application/json');

exit(Tools::jsonEncode($response['payload']));
exit(json_encode($response['payload']));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function createFromCart(Cart $cart)
$shippingInfo->phone = $address->phone;
$shippingInfo->alt_phone = $address->phone_mobile;
$shippingInfo->address_addition = $address->address2;
$shippingInfo->name = implode(self::compileCarriersName($cart), ';');
$shippingInfo->name = implode(';', self::compileCarriersName($cart));

$total_shipping_tax_exc = $cart->getTotalShippingCost(null, false);
$shippingInfo->price = Aplazame_Sdk_Serializer_Decimal::fromFloat($total_shipping_tax_exc);
Expand Down

0 comments on commit 8df3f7f

Please sign in to comment.