From a9f2b70ab579d0122b88869642353f151aa83df6 Mon Sep 17 00:00:00 2001 From: mespeche Date: Fri, 6 Sep 2013 12:29:38 +0200 Subject: [PATCH] Working : - fix route name in ConfigController --- core/lib/Thelia/Controller/Admin/ConfigController.php | 2 +- core/lib/Thelia/Controller/BaseController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Controller/Admin/ConfigController.php b/core/lib/Thelia/Controller/Admin/ConfigController.php index a67ecbaaa..b84368c2f 100644 --- a/core/lib/Thelia/Controller/Admin/ConfigController.php +++ b/core/lib/Thelia/Controller/Admin/ConfigController.php @@ -241,7 +241,7 @@ class ConfigController extends BaseAdminController if ($this->getRequest()->get('save_mode') == 'stay') { $this->redirectToRoute( - "admin.configuration.variables.change", + "admin.configuration.variables.update", array('variable_id' => $variable_id) ); } diff --git a/core/lib/Thelia/Controller/BaseController.php b/core/lib/Thelia/Controller/BaseController.php index 853776214..5fbcc56d2 100755 --- a/core/lib/Thelia/Controller/BaseController.php +++ b/core/lib/Thelia/Controller/BaseController.php @@ -215,7 +215,7 @@ class BaseController extends ContainerAware $route = $this->container->get($routerName)->getRouteCollection()->get($routeId); if ($route == null) { - throw new InvalidArgumentException(sprintf("Route ID '%s' does not exists.", $routeId)); + throw new \InvalidArgumentException(sprintf("Route ID '%s' does not exists.", $routeId)); } return $route->getPath();