Quellcode durchsuchen

test using namespace for kerio api

andre vor 2 Jahren
Ursprung
Commit
1e4d25a1d4
2 geänderte Dateien mit 8 neuen und 7 gelöschten Zeilen
  1. 8 0
      api/class/KerioApi.php
  2. 0 7
      app/Http/Actions/TestConnection.php

+ 8 - 0
api/class/KerioApi.php

@@ -478,6 +478,14 @@ class KerioApi implements KerioApiInterface {
 		/* Send data to server */
 		/* Send data to server */
 		$json_response = $this->send('POST', $json_request);
 		$json_response = $this->send('POST', $json_request);
 
 
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$params,
+			'Debug Kerio Api 1',
+			$json_response
+		);
+
 		/* Return */
 		/* Return */
 		$response = json_decode($json_response, TRUE);
 		$response = json_decode($json_response, TRUE);
 		return $response['result'];
 		return $response['result'];

+ 0 - 7
app/Http/Actions/TestConnection.php

@@ -35,13 +35,6 @@ class TestConnection extends AddonController
         $api = new KerioConnectApi('whmcsKerioEmail', 'Thurdata', '1.0');
         $api = new KerioConnectApi('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
         try {
             $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
             $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
-            logModuleCall(
-                'kerioEmail',
-                __FUNCTION__,
-                $params,
-                'Debug Kerio Api 1',
-                $api
-            );
             $serverInfo = $api->sendRequest('Server.getProductInfo');
             $serverInfo = $api->sendRequest('Server.getProductInfo');
             $api->logout();
             $api->logout();
         } catch (KerioApiException $error) {
         } catch (KerioApiException $error) {