mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
fix
This commit is contained in:
parent
8b235544eb
commit
a19874356c
|
@ -110,17 +110,18 @@ class Engine extends Object {
|
|||
*/
|
||||
protected function InitModules() {
|
||||
foreach ($this->aModules as $oModule) {
|
||||
/**
|
||||
* Замеряем время инициализации модуля
|
||||
*/
|
||||
$oProfiler=ProfilerSimple::getInstance();
|
||||
$iTimeId=$oProfiler->Start('InitModule',get_class($oModule));
|
||||
|
||||
if(!$oModule->isInit()) {
|
||||
if(!$oModule->isInit()) {
|
||||
/**
|
||||
* Замеряем время инициализации модуля
|
||||
*/
|
||||
$oProfiler=ProfilerSimple::getInstance();
|
||||
$iTimeId=$oProfiler->Start('InitModule',get_class($oModule));
|
||||
|
||||
$oModule->Init();
|
||||
$oModule->SetInit();
|
||||
|
||||
$oProfiler->Stop($iTimeId);
|
||||
}
|
||||
$oProfiler->Stop($iTimeId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue