Browse Source

new dns helper class

andre 6 months ago
parent
commit
6ae5a49e8e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      core/Http/Response.php

+ 3 - 2
core/Http/Response.php

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