mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Provide module instance in humhub module beforeInit.
This commit is contained in:
parent
82d9f51784
commit
219139daef
@ -359,9 +359,9 @@ var humhub = humhub || (function ($) {
|
||||
event.trigger('humhub:beforeInitModule', module);
|
||||
if (module.init) {
|
||||
try {
|
||||
event.trigger(module.id.replace('.', ':') + ':beforeInit');
|
||||
event.trigger(module.id.replace('.', ':') + ':beforeInit', module);
|
||||
module.init();
|
||||
event.trigger(module.id.replace('.', ':') + ':afterInit');
|
||||
event.trigger(module.id.replace('.', ':') + ':afterInit', module);
|
||||
} catch (err) {
|
||||
log.error('Could not initialize module: ' + module.id, err);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user