소스 검색

new dns helper class

andre 6 달 전
부모
커밋
6ae5a49e8e
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      core/Http/Response.php

+ 3 - 2
core/Http/Response.php

@@ -168,6 +168,7 @@ class Response extends SymfonyRespose
         $menu = $mainMenu->getMenu();
 
         $addon = ServiceLocator::call(Config::class);
+        $params['domain'] = $this->getWhmcsParamByKey('domain');
 
         $vars = [
             'assetsURL'                => BuildUrl::getAssetsURL(),
@@ -188,13 +189,13 @@ class Response extends SymfonyRespose
             'tagImageModule'           => $addon->getConfigValue('moduleIcon'),
             'isDebug'                  => (bool)((int)$addon->getConfigValue('debug', "0")),
             'errorPageDetails'         => $this->getErrorPageData($responseResolver),
-            'dnsvars'                  => DnsHelper::KerioEmailCheckDNS($this->getWhmcsParamByKey('domain'))
+            'dnsvars'                  => DnsHelper::KerioEmailCheckDNS($params)
         ];
 
         logModuleCall(
     		'kerioEmail',
 	    	__FUNCTION__,
-            $this->getWhmcsParamByKey('domain'),
+            $params,
     		'Debug',
 	    	$vars
     	);