mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Populate 'user' property of every module instance with current user info
This commit is contained in:
parent
5f7b4837dc
commit
45e930f04c
2 changed files with 20 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue