diff --git a/application/third_party/MX/Modules.php b/application/third_party/MX/Modules.php index 8abeb3e..9a78c57 100644 --- a/application/third_party/MX/Modules.php +++ b/application/third_party/MX/Modules.php @@ -80,7 +80,8 @@ public static function load($module) { (is_array($module)) ? list($module, $params) = each($module) : $params = NULL; /* get the requested controller class name */ - $alias = strtolower(end(explode('/', $module))); + $explode = explode('/', $module); + $alias = strtolower(end($explode)); /* return an existing controller from the registry */ if (isset(self::$registry[$alias])) return self::$registry[$alias]; @@ -223,4 +224,4 @@ public static function parse_routes($module, $uri) { } } } -} \ No newline at end of file +}