[*] Project : Add possibility to use admin controllers in modules

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12678 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
jBreux
2012-01-25 14:12:36 +00:00
parent 0d16fb2892
commit 8c25b56777
2 changed files with 19 additions and 1 deletions
+7 -1
View File
@@ -342,7 +342,13 @@ class DispatcherCore
// Instantiate controller
try
{
Controller::getController($controller_class)->run();
$controller = Controller::getController($controller_class);
// Controller comes from a module set "module name"
if (!empty($controller_row['module']) && $controller_type == 'controller')
$controller->module = $controller_row['module'];
$controller->run();
}
catch (PrestaShopException $e)
{