Skip to content

Commit

Permalink
feat: add conditionnal to use new method only on v9
Browse files Browse the repository at this point in the history
  • Loading branch information
PoulainMaxime committed Dec 12, 2024
1 parent 1ac7f62 commit e761885
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/admin/AdminAjaxPsxMktgWithGoogleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,11 @@ private function render($response, $code)
header('Content-Type: application/json;charset=utf-8');
header("HTTP/1.1 $code");

parent::ajaxRender($response);
if (_PS_VERSION_ === '9.0.0') {
parent::ajaxRender($response);
exit;
}

parent::ajaxDie($response, null, null);
}
}

0 comments on commit e761885

Please sign in to comment.