@@ -219,6 +219,14 @@ if (!function_exists('\ThurData\Servers\KerioEmail\Core\Helper\di'))
$return = null;
$methodName = ($isCreate) ? 'create' : 'get';
+ logModuleCall(
+ 'kerioEmail',
+ __FUNCTION__,
+ $methodName,
+ 'Debug Home',
+ $class
+ );
+
if ($class != null && $method == null)
{
$return = DependencyInjection::{$methodName}($class);
@@ -21,14 +21,6 @@ trait WhmcsParams
if ($this->whmcsParams === null)
- logModuleCall(
- 'kerioEmail',
- __FUNCTION__,
- $this,
- 'Debug Home',
- di('whmcsParams')
- );
-
$this->whmcsParams = di('whmcsParams');
}