[+] BO : Module controllers can now create custom rewrite in SEO page

This commit is contained in:
rMalie
2012-04-27 13:36:31 +00:00
parent ede6b37374
commit f663275d27
4 changed files with 68 additions and 10 deletions
+5 -1
View File
@@ -306,7 +306,11 @@ class LinkCore
$params['module'] = $module;
$params['controller'] = $controller ? $controller : 'default';
return $url.Dispatcher::getInstance()->createUrl('module', $params, $this->allow);
// If the module has its own route ... just use it !
if (Dispatcher::getInstance()->hasRoute('module-'.$module.'-'.$controller))
return $this->getPageLink('module-'.$module.'-'.$controller, $params);
else
return $url.Dispatcher::getInstance()->createUrl('module', $params, $this->allow);
}
/**