Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(dep-bump): whmcs-ispapi-helper@1.3.2, migration to localAPI
Browse files Browse the repository at this point in the history
reviewed the source code accordingly to support the new module version and the localAPI as far as
possible
  • Loading branch information
KaiSchwarz-cnic committed Mar 22, 2019
1 parent d199232 commit 06ad8ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
],
"require": {
"php": ">=5.6.0",
"hexonet/whmcs-ispapi-helper": "1.0.6"
"hexonet/whmcs-ispapi-helper": "1.3.2"
},
"require-dev": {
"phpunit/phpunit": "@stable",
Expand Down
4 changes: 1 addition & 3 deletions modules/addons/ispapidomainimport/lib/Admin/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class Controller
*/
public function index($vars, $smarty)
{
// get payment gateways
$gateways = Helper::getPaymentGateways();
$gateways = Helper::getPaymentMethods();
if (empty($gateways)) {
$smarty->assign('error', $vars["_lang"]["nogatewayerror"]);
return $smarty->fetch('error.tpl');
Expand All @@ -32,7 +31,6 @@ public function index($vars, $smarty)
if (!isset($_REQUEST["domain"])) {
$_REQUEST["domain"] = "*";
}
// show form
return $smarty->fetch('index.tpl');
}

Expand Down
4 changes: 2 additions & 2 deletions modules/addons/ispapidomainimport/templates/admin/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<label for="currency" class="control-label col-sm-2">{$_lang['label.currency']}</label>
<div class="col-sm-10">
<select id="currency" name="currency" class="form-control">
{foreach from=$currencies key=id item=currency}
<option value="{$id}"{$currency_selected[$id]}>{$currency}</option>
{foreach from=$currencies key=currency item=item}
<option value="{$item.id}"{$currency_selected[$item.id]}>{$currency}</option>
{/foreach}
</select>
</div>
Expand Down

0 comments on commit 06ad8ba

Please sign in to comment.