Bugfix the sections module not being able to load module sections
This commit is contained in:
parent
771727ca48
commit
883b45fac7
@ -94,8 +94,8 @@ class Sections extends Module {
|
|||||||
|
|
||||||
// Logic here, first for module sections
|
// Logic here, first for module sections
|
||||||
if ($section['module_section']) {
|
if ($section['module_section']) {
|
||||||
$this->core->loadMod($section['module_name']);
|
$mod = $this->core->loadMod($section['module_name']);
|
||||||
$event->directory = $this->mods->{$section['module_name']}->getModulePath() . "/Controller/";
|
$event->directory = $mod->getModulePath() . "/Controller/";
|
||||||
} else {
|
} else {
|
||||||
// Now for regular sections
|
// Now for regular sections
|
||||||
$event->directory = $section['controller_path'];
|
$event->directory = $section['controller_path'];
|
||||||
|
Loading…
Reference in New Issue
Block a user