mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-18 16:58:18 +03:00
Фикс статистики и обновление фреймворка
This commit is contained in:
parent
033d5178af
commit
edf21d16cf
|
@ -32,9 +32,7 @@ class HookStatisticsPerformance extends Hook
|
|||
*/
|
||||
public function RegisterHook()
|
||||
{
|
||||
if ($this->User_GetIsAdmin()) {
|
||||
$this->AddHook('template_body_end', 'Statistics', __CLASS__, -1000);
|
||||
}
|
||||
$this->AddHook('template_body_end', 'Statistics', __CLASS__, -1000);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,6 +42,9 @@ class HookStatisticsPerformance extends Hook
|
|||
*/
|
||||
public function Statistics()
|
||||
{
|
||||
if (!$this->User_GetIsAdmin()) {
|
||||
return '';
|
||||
}
|
||||
$oEngine = Engine::getInstance();
|
||||
/**
|
||||
* Подсчитываем время выполнения
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f53b367fe1cd06ed972b3e414c676aa7c1dd1aea
|
||||
Subproject commit dd15b180d9ec0557423387765dc6bdcc27da6c96
|
Loading…
Reference in a new issue