Skip to content

Commit

Permalink
Merge pull request #572 from PoulainMaxime/fix/v9-conditionnal
Browse files Browse the repository at this point in the history
fix: use version_compare for v9
  • Loading branch information
PoulainMaxime authored Jan 29, 2025
2 parents a801704 + ea57e40 commit 65797ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_facebook</name>
<displayName><![CDATA[PS Social with Facebook & Instagram]]></displayName>
<version><![CDATA[1.38.5]]></version>
<version><![CDATA[1.38.6]]></version>
<description><![CDATA[PS Social with Facebook & Instagram gives you all the tools you need to successfully sell and market across Facebook and Instagram. Discover new opportunities to help you scale and grow your business, and manage all your Facebook accounts and products from one place.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[advertising_marketing]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion controllers/admin/AdminAjaxPsfacebookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ private function render($response, $code)
header('Content-Type: application/json;charset=utf-8');
header("HTTP/1.1 $code");

if (_PS_VERSION_ === '9.0.0') {
if ((bool) version_compare(_PS_VERSION_, '9.0.0', '>=')) {
//@phpstan-ignore-next-line
parent::ajaxRender($response);
exit;
Expand Down
2 changes: 1 addition & 1 deletion ps_facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function __construct()
{
$this->name = 'ps_facebook';
$this->tab = 'advertising_marketing';
$this->version = '1.38.5';
$this->version = '1.38.6';
$this->author = 'PrestaShop';
$this->need_instance = 0;
$this->module_key = '860395eb54512ec72d98615805274591';
Expand Down

0 comments on commit 65797ec

Please sign in to comment.