andre 2 лет назад
Родитель
Сommit
087fec1687
2 измененных файлов с 9 добавлено и 9 удалено
  1. 9 1
      app/Http/Client/Home.php
  2. 0 8
      app/UI/Client/EmailAccount/Pages/Accounts.php

+ 9 - 1
app/Http/Client/Home.php

@@ -8,6 +8,7 @@ use ThurData\Servers\KerioEmail\App\UI\Client\Home\Pages\Dashboard;
 use ThurData\Servers\KerioEmail\Core\Http\AbstractClientController;
 use ThurData\Servers\KerioEmail\Core\Helper;
 use ThurData\Servers\KerioEmail\Core\UI\Traits\WhmcsParams;
+use ThurData\Servers\KerioEmail\Core\Helper\WhmcsParams as Params;
 
 /**
  *
@@ -23,8 +24,15 @@ class Home extends AbstractClientController
 
     public function index()
     {
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $params,
+            'Debug params',
+            \ThurData\Servers\KerioEmail\Core\Helper\sl("whmcsParams")->setParams($params)
+        ); 
 
-    if ($this->getWhmcsParamByKey('status') === 'Active')
+        if ($this->getWhmcsParamByKey('status') === 'Active')
         {
             $response = Helper\view()->addElement(Dashboard::class);
             return $response;

+ 0 - 8
app/UI/Client/EmailAccount/Pages/Accounts.php

@@ -117,14 +117,6 @@ class Accounts extends DataTable implements ClientArea
     public function initContent()
     {
 
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $params,
-            'Debug Accounts',
-            $this
-        );
-
         $productManager = new ProductManager();
         $productManager->loadByHostingId($this->getRequestValue('id'));