Bugfix the sections module not being able to load module sections

This commit is contained in:
Abel Hoogeveen 2015-03-15 11:23:56 +01:00
parent 771727ca48
commit 883b45fac7
1 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@ class Sections extends Module {
// Logic here, first for module sections
if ($section['module_section']) {
$this->core->loadMod($section['module_name']);
$event->directory = $this->mods->{$section['module_name']}->getModulePath() . "/Controller/";
$mod = $this->core->loadMod($section['module_name']);
$event->directory = $mod->getModulePath() . "/Controller/";
} else {
// Now for regular sections
$event->directory = $section['controller_path'];