From 5873b29fc1caeb88fa036b71cb3ed0a95aea9ecf Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Wed, 4 Jun 2014 16:14:04 +0200 Subject: [PATCH] Changed "return_to" into "previous" --- core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php index 03d605358..8a6bc5e5b 100644 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php @@ -153,7 +153,7 @@ class UrlGenerator extends AbstractSmartyPlugin { return array( "current" => "getCurrentUrl", - "return_to" => "getReturnToUrl", + "previous " => "getPreviousUrl", "index" => "getIndexUrl", ); } @@ -178,7 +178,7 @@ class UrlGenerator extends AbstractSmartyPlugin return $this->request->getUri(); } - protected function getReturnToUrl() + protected function getPreviousUrl() { return URL::getInstance()->absoluteUrl($this->request->getSession()->getReturnToUrl()); }