Changed "return_to" into "previous"

This commit is contained in:
Franck Allimant
2014-06-04 16:14:04 +02:00
parent 15da99446c
commit 5873b29fc1

View File

@@ -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());
}