// Fix strict standard on controllers + modules header / footer include
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8727 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -412,9 +412,9 @@ class FrontControllerCore extends ControllerCore
|
||||
exit;
|
||||
}
|
||||
|
||||
protected function canonicalRedirection($canonicalURL)
|
||||
protected function canonicalRedirection($canonicalURL = '')
|
||||
{
|
||||
if (!Configuration::get('PS_CANONICAL_REDIRECT'))
|
||||
if (!$canonicalURL || !Configuration::get('PS_CANONICAL_REDIRECT'))
|
||||
return;
|
||||
|
||||
$matchUrl = (($this->ssl && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
||||
@@ -599,11 +599,11 @@ class FrontControllerCore extends ControllerCore
|
||||
asort($nArray);
|
||||
$this->n = abs((int)(Tools::getValue('n', ((isset($this->context->cookie->nb_item_per_page) AND $this->context->cookie->nb_item_per_page >= 10) ? $this->context->cookie->nb_item_per_page : (int)(Configuration::get('PS_PRODUCTS_PER_PAGE'))))));
|
||||
$this->p = abs((int)(Tools::getValue('p', 1)));
|
||||
|
||||
|
||||
$current_url = tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']);
|
||||
//delete parameter page
|
||||
$current_url = preg_replace('/(\?)?(&)?p=\d+/', '$1', $current_url);
|
||||
|
||||
|
||||
$range = 2; /* how many pages around page selected */
|
||||
|
||||
if ($this->p < 0)
|
||||
|
||||
Reference in New Issue
Block a user