Changeset View
Changeset View
Standalone View
Standalone View
core/units/modules/modules_event_handler.php
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | |||||
* @param kEvent $event | * @param kEvent $event | ||||
* @return void | * @return void | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function OnAfterListQuery(kEvent $event) | protected function OnAfterListQuery(kEvent $event) | ||||
{ | { | ||||
parent::OnAfterListQuery($event); | parent::OnAfterListQuery($event); | ||||
$modules_helper = $this->Application->recallObject('ModulesHelper'); | $modules_helper = $this->Application->recallObject('kModulesHelper'); | ||||
/* @var $modules_helper kModulesHelper */ | /* @var $modules_helper kModulesHelper */ | ||||
$new_modules = $modules_helper->getModules(kModulesHelper::NOT_INSTALLED); | $new_modules = $modules_helper->getModules(kModulesHelper::NOT_INSTALLED); | ||||
if ( !$new_modules || $this->Application->RecallVar('user_id') != USER_ROOT ) { | if ( !$new_modules || $this->Application->RecallVar('user_id') != USER_ROOT ) { | ||||
return; | return; | ||||
} | } | ||||
Show All 11 Lines | |||||
'Version' => $toolkit->GetMaxModuleVersion('modules/' . $module . '/'), | 'Version' => $toolkit->GetMaxModuleVersion('modules/' . $module . '/'), | ||||
'Loaded' => 0, | 'Loaded' => 0, | ||||
'BuildDate' => null, | 'BuildDate' => null, | ||||
); | ); | ||||
$object->addRecord($module_record); | $object->addRecord($module_record); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
No newline at end of file |