1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-18 16:58:18 +03:00

Фикс статистики и обновление фреймворка

This commit is contained in:
Mzhelskiy Maxim 2015-04-23 11:04:27 +07:00
parent 033d5178af
commit edf21d16cf
2 changed files with 5 additions and 4 deletions

View file

@ -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