|
|
@@ -128,14 +128,6 @@ class Settings extends DataTable implements ClientArea
|
|
|
|
|
|
$api->logout();
|
|
|
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $domains,
|
|
|
- 'Debug Settings',
|
|
|
- $this->params
|
|
|
- );
|
|
|
-
|
|
|
foreach($domains as $domain) {
|
|
|
if(($domain['name']) === $maildomain){
|
|
|
$aliasList = $domain['aliasList'];
|
|
|
@@ -152,10 +144,18 @@ class Settings extends DataTable implements ClientArea
|
|
|
|
|
|
// get settings from product configuration
|
|
|
$productManager = new ProductManager();
|
|
|
- $productManager->loadById($this->params['pid']);
|
|
|
+ $productManager->loadById($this->getWhmcsParamByKey('pid'));
|
|
|
$this->spfConfig = $productManager->get('spf_string');
|
|
|
$this->dmarcConfig = $productManager->get('dmarc_string');
|
|
|
|
|
|
+ logModuleCall(
|
|
|
+ 'kerioEmail',
|
|
|
+ __FUNCTION__,
|
|
|
+ $this,
|
|
|
+ 'Debug Settings',
|
|
|
+ $aliasList
|
|
|
+ );
|
|
|
+
|
|
|
/**
|
|
|
* format model to array
|
|
|
*/
|