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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14950 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-04-27 13:36:31 +00:00
parent 6e8d4f587e
commit 3a46ce1a35
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);
}
/**