Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/application.php
Show First 20 Lines • Show All 379 Lines • ▼ Show 20 Line(s) | |||||
$this->Debugger->profileFinish('kernel4_startup'); | $this->Debugger->profileFinish('kernel4_startup'); | ||||
} | } | ||||
$this->InitDone = true; | $this->InitDone = true; | ||||
if ( PHP_SAPI !== 'cli' && !$this->isAdmin ) { | if ( PHP_SAPI !== 'cli' && !$this->isAdmin ) { | ||||
$this->HandleEvent(new kEvent('adm:OnStartup')); | $this->HandleEvent(new kEvent('adm:OnStartup')); | ||||
} | } | ||||
else { | |||||
// User can't edit anything in Admin Console or in CLI mode. | |||||
kUtil::safeDefine('EDITING_MODE', ''); | |||||
} | |||||
return true; | return true; | ||||
} | } | ||||
/** | /** | ||||
* Performs initialization of manager classes, that can be overridden from unit configs | * Performs initialization of manager classes, that can be overridden from unit configs | ||||
* | * | ||||
* @return void | * @return void | ||||
▲ Show 20 Lines • Show All 2707 Lines • Show Last 20 Lines |