From 883b45fac7798fa26f8b8fca38a22ea7eacb005e Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Sun, 15 Mar 2015 11:23:56 +0100 Subject: [PATCH] Bugfix the sections module not being able to load module sections --- Core/Mods/sections/class.sections.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Mods/sections/class.sections.php b/Core/Mods/sections/class.sections.php index a1b62f5..9ef404a 100644 --- a/Core/Mods/sections/class.sections.php +++ b/Core/Mods/sections/class.sections.php @@ -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'];