Skip to content

Commit

Permalink
Merge pull request #302 from alma/develop
Browse files Browse the repository at this point in the history
Release 3.1.6
  • Loading branch information
Benjamin-Freoua-Alma authored Feb 5, 2024
2 parents cafca6e + b1903d3 commit 2208c57
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v3.1.6

- fix: Pay Now without inpage PS 1.5 / 1.6
- fix: ensure library is not invoked in CLI mode

## v3.1.5

- fix: Add verification of number on type in amount field for refund
Expand Down
4 changes: 2 additions & 2 deletions alma/alma.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

class Alma extends PaymentModule
{
const VERSION = '3.1.5';
const VERSION = '3.1.6';

public $_path;
public $local_path;
Expand Down Expand Up @@ -65,7 +65,7 @@ public function __construct()
{
$this->name = 'alma';
$this->tab = 'payments_gateways';
$this->version = '3.1.5';
$this->version = '3.1.6';
$this->author = 'Alma';
$this->need_instance = false;
$this->bootstrap = true;
Expand Down
1 change: 0 additions & 1 deletion alma/controllers/hook/DisplayPaymentHookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public function run($params)
if ($isPayNow) {
$paymentOption['text'] = SettingsCustomFieldsHelper::getPayNowButtonTitleByLang($idLang);
$paymentOption['desc'] = SettingsCustomFieldsHelper::getPayNowButtonDescriptionByLang($idLang);
$paymentOption['isInPageEnabled'] = true;
}
$paymentOptions[$key] = $paymentOption;
$sortOptions[$key] = $feePlans->$key->order;
Expand Down
2 changes: 1 addition & 1 deletion alma/lib/smarty.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
exit;
}

if (class_exists('\Context')) {
if (class_exists('\Context') && PHP_SAPI != 'cli') {
$smarty = \Context::getContext()->smarty;

/**
Expand Down

0 comments on commit 2208c57

Please sign in to comment.