// Fix bug with getPaginationLink and undefined php_self

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13668 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-02-28 09:49:37 +00:00
parent d467048f02
commit 929af2c340
+7 -1
View File
@@ -430,7 +430,13 @@ class LinkCore
if ($type && $id_object)
$url = $this->{'get'.$type.'Link'}($id_object, null);
else
$url = $this->getPageLink(Context::getContext()->controller->php_self);
{
if (isset(Context::getContext()->controller->php_self))
$name = Context::getContext()->controller->php_self;
else
$name = Dispatcher::getInstance()->getController();
$url = $this->getPageLink($name);
}
$vars = (!$array) ? '' : array();
$vars_nb = array('n', 'search_query');