Populate 'user' property of every module instance with current user info

This commit is contained in:
Kijin Sung 2017-02-10 21:08:05 +09:00
parent 5f7b4837dc
commit 45e930f04c
2 changed files with 20 additions and 0 deletions

View file

@ -1178,6 +1178,12 @@ class ModuleHandler extends Handler
{
return NULL;
}
// Populate default properties
if($oModule->user === false)
{
$oModule->user = Context::get('logged_info');
}
// Load language files for the class
if($module !== 'module')