瀏覽代碼

try to get connectiontest running

andre 2 年之前
父節點
當前提交
dffb7df71b
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      api/class/KerioApi.php

+ 1 - 2
api/class/KerioApi.php

@@ -295,6 +295,7 @@ class KerioApi implements KerioApiInterface {
 		elseif (empty($this->application)) {
 		elseif (empty($this->application)) {
 			throw new KerioApiException('Cannot login. Application not defined.');
 			throw new KerioApiException('Cannot login. Application not defined.');
 		}
 		}
+		$this->setHostname($hostname);
 
 
 		logModuleCall(
 		logModuleCall(
 			'kerioEmail',
 			'kerioEmail',
@@ -304,8 +305,6 @@ class KerioApi implements KerioApiInterface {
 			$this->application
 			$this->application
 		);
 		);
 
 
-		$this->setHostname($hostname);
-
 		$method = 'Session.login';
 		$method = 'Session.login';
 		$params = array(
 		$params = array(
 			'userName'		=> $username,
 			'userName'		=> $username,