From ee3d388e1f373f8fd09e73566e07c1ea6382d4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Preu=C3=9F?= Date: Sun, 19 May 2019 13:47:34 +0200 Subject: [PATCH] Refix navigation --- classes/Module.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/Module.class.php b/classes/Module.class.php index 0343cf7..03eb9bd 100644 --- a/classes/Module.class.php +++ b/classes/Module.class.php @@ -87,7 +87,6 @@ $script = sprintf('%s%smodule.php', $this->path, DS); if(!file_exists($script)) { - //throw new \Exception('[Module] had no class: ' . $script); return; } @@ -111,7 +110,7 @@ 'order' => $this->info->getOrder(), 'target' => $core->getHooks()->applyFilter('TARGET_' . $this->info->getName(), NULL), 'url' => $core->getHooks()->applyFilter('URL_' . $this->info->getName(), sprintf('/module/%s', basename($this->path))), - 'active' => $core->getRouter()->startsWith(sprintf('/module/%s', basename($this->path))) + 'active' => $core->getRouter()->is(sprintf('/module/%s', basename($this->path))) || $core->getRouter()->startsWith(sprintf('/module/%s/', basename($this->path))) ]; return $entries;