|
|
@@ -27,7 +27,6 @@ class CreateAccount extends AddonController
|
|
|
use ExtensionsCheckerTrait;
|
|
|
use HostingService;
|
|
|
use WhmcsParams;
|
|
|
- use ProductManagerHandler;
|
|
|
|
|
|
/**
|
|
|
* create domain in kerio
|
|
|
@@ -72,6 +71,9 @@ class CreateAccount extends AddonController
|
|
|
*/
|
|
|
protected function kerioRunService($params = null)
|
|
|
{
|
|
|
+ $productManager = new ProductManager();
|
|
|
+ $productManager->loadById($params['pid']);
|
|
|
+
|
|
|
$api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
try {
|
|
|
$api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
|
|
|
@@ -83,7 +85,7 @@ class CreateAccount extends AddonController
|
|
|
__FUNCTION__,
|
|
|
$params,
|
|
|
'Debug ID',
|
|
|
- $this
|
|
|
+ $productManager->get('acc_base')
|
|
|
);
|
|
|
} catch (KerioApiException $error) {
|
|
|
|