Visman 3 лет назад
Родитель
Сommit
4634f85dbf
2 измененных файлов с 8 добавлено и 8 удалено
  1. 6 5
      app/Models/Pages/Admin.php
  2. 2 3
      app/Models/Pages/Admin/Statistics.php

+ 6 - 5
app/Models/Pages/Admin.php

@@ -25,11 +25,12 @@ abstract class Admin extends Page
     {
         parent::__construct($container);
 
-        $this->aIndex    = 'index'; # string Указатель на активный пункт навигации в меню админки
-        $this->fIndex    = self::FI_ADMIN;
-        $this->onlinePos = 'admin';
-        $this->robots    = 'noindex, nofollow';
-        $this->hhsLevel  = 'secure';
+        $this->aIndex       = 'index'; # string Указатель на активный пункт навигации в меню админки
+        $this->fIndex       = self::FI_ADMIN;
+        $this->onlinePos    = 'admin';
+        $this->onlineDetail = null;
+        $this->robots       = 'noindex, nofollow';
+        $this->hhsLevel     = 'secure';
 
         $container->Lang->load('admin');
 

+ 2 - 3
app/Models/Pages/Admin/Statistics.php

@@ -65,7 +65,6 @@ class Statistics extends Admin
         }
 
         $this->nameTpl      = 'admin/phpinfo';
-        $this->onlineDetail = null;
         $this->mainSuffix   = '-one-column';
         $this->aCrumbs[]    = [$this->c->Router->link('AdminInfo'), ['%s', 'phpinfo()']];
         $this->aCrumbs[]    = [$this->c->Router->link('AdminStatistics'), 'Server statistics'];
@@ -83,7 +82,6 @@ class Statistics extends Admin
 
         $this->nameTpl      = 'layouts/plain';
         $this->plainText    = $this->c->Cache->get('phpinfoCSS', '');
-        $this->onlineDetail = null;
 
         $this->header('Content-type', 'text/css; charset=utf-8');
 
@@ -143,7 +141,8 @@ class Statistics extends Admin
         }
 
         // Get number of current visitors
-        $this->numOnline = $this->c->Online->calc($this)->all;
+        $this->onlineDetail = false;
+        $this->numOnline    = $this->c->Online->calc($this)->all;
 
         $stat = $this->c->DB->statistics();