Pārlūkot izejas kodu

[Administration] Dashboard : optimisation (suppression count users)

refactoring
Guillaume Bourgeois pirms 2 gadiem
vecāks
revīzija
b9b9af2b6d
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. +1
    -3
      backend/controllers/SiteController.php

+ 1
- 3
backend/controllers/SiteController.php Parādīt failu

@@ -117,6 +117,7 @@ class SiteController extends BackendController
*/
public function actionIndex()
{

// commandes
$optionDashboardNumberDistributions = Producer::getConfig('option_dashboard_number_distributions') ;
$dashboardNumberDistributions = $optionDashboardNumberDistributions ? $optionDashboardNumberDistributions : 3 ;
@@ -175,8 +176,6 @@ class SiteController extends BackendController
]);

// clients
$nbUsers = User::searchCount();

$usersArray = User::findBy()
->orderBy('created_at DESC')
->limit(5)
@@ -196,7 +195,6 @@ class SiteController extends BackendController
'distributionsArray' => $distributionsArray,
'ordersArray' => $ordersArray,
'usersArray' => $usersArray,
'nbUsers' => $nbUsers,
'usersNegativeCredit' => $usersNegativeCredit,
'producer' => $producer,
'productsCount' => $productsCount,

Notiek ielāde…
Atcelt
Saglabāt