Selaa lähdekoodia

test use sections

andre 3 kuukautta sitten
vanhempi
commit
f7210a4f54

+ 2 - 1
app/UI/Client/Setting/Providers/InfoSettingDataProvider.php

@@ -22,6 +22,7 @@ class InfoSettingDataProvider extends BaseDataProvider
 
     public function read()
     {
+        $domain = $this->getWhmcsParamByKey('domain');
         $maildomain = $this->actionElementId;
         $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
@@ -41,7 +42,7 @@ class InfoSettingDataProvider extends BaseDataProvider
         $api->logout();
         // find own domain
         foreach($securitys as $security) {
-            if($security['name'] === $maildomain){ 
+            if($security['name'] === $domain){ 
                 $domainID = $security['id'];
                 $security['twoFAEnabled'] == true ? $tfaenabled = 'on' : $tfaenabled = 'off' ;
                 $security['isDkimEnabled'] == true ? $dkimsigenabled = 'on' : $dkimsigenabled = 'off';

+ 0 - 9
app/UI/Client/Setting/Sections/EditAdditionalSection.php

@@ -27,15 +27,6 @@ class EditAdditionalSection extends FreeFieldsSection
     {
         $domain = $this->getWhmcsParamByKey('domain');
         $maildomain = $this->getRequestValue('actionElementId');
-
-            logModuleCall(
-                'kerioEmail',
-                __FUNCTION__,
-                $domain,
-                'Debug Error',
-                $maildomain
-            );
-
         if($domain == $maildomain) {
             $dkimsigenabled = new Switcher('dkimsigenabled');
             $this->addField($dkimsigenabled);