// Fix #PSTEST-231 - AdminSearch

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11994 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-01-02 14:17:30 +00:00
parent 273328b8b3
commit 8c2c9507cf
3 changed files with 44 additions and 29 deletions
+6 -3
View File
@@ -288,13 +288,16 @@ class LinkCore
}
/**
* use controller name to create link with correct token
* Use controller name to create a link
*
* @param string $controller
* @param boolean $with_token include or not the token in the url
* @return controller url
*/
public function getAdminLink($controller)
public function getAdminLink($controller, $with_token = true)
{
return Dispatcher::getInstance()->createUrl($controller, array('token' => Tools::getAdminTokenLite($controller)), false);
$params = $with_token ? array('token' => Tools::getAdminTokenLite($controller)) : array();
return Dispatcher::getInstance()->createUrl($controller, $params, false);
}
/**