// Fix bug with getPaginationLink and undefined php_self
This commit is contained in:
1 parent
fb208d2459
commit
2aa5dbd529
1 file changed
+7
-1
+7
-1
@@ -430,7 +430,13 @@ class LinkCore
|
|||||||
if ($type && $id_object)
|
if ($type && $id_object)
|
||||||
$url = $this->{'get'.$type.'Link'}($id_object, null);
|
$url = $this->{'get'.$type.'Link'}($id_object, null);
|
||||||
else
|
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 = (!$array) ? '' : array();
|
||||||
$vars_nb = array('n', 'search_query');
|
$vars_nb = array('n', 'search_query');
|
||||||
|
|||||||
Reference in new issue
Block a user