Explorar o código

try to get connectiontest running

andre %!s(int64=2) %!d(string=hai) anos
pai
achega
c594c283df
Modificáronse 1 ficheiros con 8 adicións e 9 borrados
  1. 8 9
      api/class/KerioApi.php

+ 8 - 9
api/class/KerioApi.php

@@ -455,15 +455,6 @@ class KerioApi implements KerioApiInterface {
 	 * @return	array	Returns same type as param is, e.g. JSON if method is also JSON
 	 */
 	public function sendRequest($method, $params = '') {
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$params,
-			'Debug Kerio Api 1',
-			$method
-		);
-
 		$request = array(
 			'jsonrpc'	=>	$this->jsonRpc['version'],
 			'id'		=>	$this->getRequestId(),
@@ -479,6 +470,14 @@ class KerioApi implements KerioApiInterface {
 			unset($request['params']);
 		}
 
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$params,
+			'Debug Kerio Api 1',
+			$request
+		);
+
 		$json_request = json_encode($request);
 
 		/* Send data to server */