|
|
@@ -304,15 +304,6 @@ class KerioApi implements KerioApiInterface {
|
|
|
);
|
|
|
|
|
|
$response = $this->sendRequest($method, $params);
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- 'Debug Kerio Api 1',
|
|
|
- $response
|
|
|
- );
|
|
|
-
|
|
|
return $response;
|
|
|
}
|
|
|
|
|
|
@@ -464,6 +455,15 @@ 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(),
|