Selaa lähdekoodia

enable logging

andre 1 vuosi sitten
vanhempi
commit
828b056703
1 muutettua tiedostoa jossa 9 lisäystä ja 8 poistoa
  1. 9 8
      kerioEmail.php

+ 9 - 8
kerioEmail.php

@@ -120,14 +120,6 @@ function KerioEmail_MetaData()
 function KerioEmail_ClientArea($params)
 {
 
-    logModuleCall(
-        'kerioEmail',
-        __FUNCTION__,
-        $params,
-        'Debug ClientArea',
-        $whmcs
-    );
-
     require_once __DIR__ . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'App' . DIRECTORY_SEPARATOR . 'AppContext.php';
     
     $appContext = new AppContext();
@@ -136,6 +128,15 @@ function KerioEmail_ClientArea($params)
     $domainBaseSize = $productManager->get('domainBaseSize') ? $productManager->get('domainBaseSize') : 0;
     $acc_base = $productManager->get('acc_base') ? $productManager->get('acc_base') : 0;
     $response = $appContext->runApp('clientarea', $params);
+
+    logModuleCall(
+        'kerioEmail',
+        __FUNCTION__,
+        $params,
+        'Debug ClientArea',
+        $response
+    );
+
     $response['templateVariables']['acc_base'] = $acc_base;
     $response['templateVariables']['acc_add'] = $params['configoptions']['acc_add'] ? $params['configoptions']['acc_add'] : 0;
     $response['templateVariables']['domainBaseSize'] = $domainBaseSize;