Parcourir la source

add chat control

andre il y a 2 mois
Parent
commit
2e3543726c

+ 0 - 9
api/KerioWhmcs.php

@@ -706,15 +706,6 @@ class KerioWhmcs extends KerioConnectApi {
 	 * @return	array	Result
 	 */
 	function modifyDomain($domainID, $attr) {
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$domainID,
-			'Debug API',
-			$attr
-		);
-
 		$params = array(
 			'domainIds' => array($domainID),
 			'pattern' => $attr,

+ 9 - 0
app/UI/Client/Setting/Providers/EditSettingDataProvider.php

@@ -170,6 +170,15 @@ class EditSettingDataProvider extends BaseDataProvider
             $this->formData['dkimsigenabled'] == 'on' ? $attr['isDkimEnabled'] = true : $attr['isDkimEnabled'] = false;
             $this->formData['tfaenabled'] == 'on' ? $attr['twoFAEnabled'] = true : $attr['twoFAEnabled'] = false;
             $this->formData['chatenabled'] == 'on' ? $attr['isInstantMessagingEnabled'] = true : $attr['isInstantMessagingEnabled'] = false;
+
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$this->formData['domainid'],
+			'Debug API',
+			$attr
+		);
+
             $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
             try {
                 $api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));