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

Commit

Permalink
refactor(migration): to support v3.x.x of the ispapi registrar module
Browse files Browse the repository at this point in the history
BREAKING CHANGE: compatible with ISPAPI registrar module v3.x.x
  • Loading branch information
tulsi91 committed Apr 27, 2020
1 parent fa9377e commit b724803
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 3 additions & 7 deletions modules/addons/ispapidomainimport/ispapidomainimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@
$module_version = "2.0.12";

use WHMCS\Module\Addon\IspapiDomainImport\Admin\AdminDispatcher;
if (!class_exists("ISPAPI\\LoadRegistrars")) {
require_once(implode(DIRECTORY_SEPARATOR, array(ROOTDIR,"modules","registrars","ispapi","lib","LoadRegistrars.class.php")));
}
if (!class_exists("ISPAPI\\Helper")) {
require_once(implode(DIRECTORY_SEPARATOR, array(ROOTDIR,"modules","registrars","ispapi","lib","Helper.class.php")));
}
use ISPAPI\LoadRegistrars;

use WHMCS\Module\Registrar\Ispapi\Ispapi;
use WHMCS\Module\Registrar\Ispapi\LoadRegistrars;

/**
* Define addon module configuration parameters.
Expand Down
5 changes: 3 additions & 2 deletions modules/addons/ispapidomainimport/lib/Admin/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace WHMCS\Module\Addon\IspapiDomainImport\Admin;

use ISPAPI\Helper;
use WHMCS\Module\Registrar\Ispapi\Ispapi;
use WHMCS\Module\Registrar\Ispapi\Helper;

/**
* Admin Area Controller
Expand Down Expand Up @@ -49,7 +50,7 @@ public function pull()
header('Content-type: application/json; charset=utf-8');

// fetch list of domains from API
$r = Helper::APICall($_REQUEST['registrar'], array(
$r = Ispapi::call(array(
"COMMAND" => "QueryDomainList",
"USERDEPTH" => "SELF",
"ORDERBY" => "DOMAIN",
Expand Down

0 comments on commit b724803

Please sign in to comment.