瀏覽代碼

new settings section

andre 5 月之前
父節點
當前提交
5f178e353b
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      app/UI/Client/Setting/Pages/Settings.php

+ 9 - 9
app/UI/Client/Setting/Pages/Settings.php

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