|
|
@@ -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 */
|