[-] FO : fixed bug #PSCFV-3189

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16682 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-08-03 12:47:28 +00:00
parent 3e76816edb
commit 18c576ff5b
2 changed files with 11 additions and 12 deletions
+4 -4
View File
@@ -469,7 +469,7 @@ class LinkCore
if (method_exists($this, $method_name) && isset($_GET['id_'.Dispatcher::getInstance()->getController()]))
{
$type = Dispatcher::getInstance()->getController();
$id_object = $_GET['id_'.Dispatcher::getInstance()->getController()];
$id_object = $_GET['id_'.$type];
}
}
@@ -518,11 +518,11 @@ class LinkCore
return $url.(($this->allow == 1 || $url == $this->url) ? '?' : '&').http_build_query($vars, '', '&');
$vars['requestUrl'] = $url;
if (!$this->allow == 1)
$vars['controller'] = Dispatcher::getInstance()->getController();
if ($type && $id_object)
$vars['id_'.$type] = (is_object($id_object) ? (int)$id_object->id : (int)$id_object);
if (!$this->allow == 1)
$vars['controller'] = Dispatcher::getInstance()->getController();
return $vars;
}