[-] FO : fixed bug #PSCFV-6411 Friendly URL on prices-drop for page 2 doesn't work
This commit is contained in:
1 parent
bdc421b645
commit
f0f50db926
2 files changed
+19
-6
No files matched your search
+5
-1
@@ -535,7 +535,11 @@ class LinkCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$array)
|
if (!$array)
|
||||||
return $url.(($this->allow == 1 || $url == $this->url) ? '?' : '&').http_build_query($vars, '', '&');
|
if (count($vars))
|
||||||
|
return $url.(($this->allow == 1 || $url == $this->url) ? '?' : '&').http_build_query($vars, '', '&');
|
||||||
|
else
|
||||||
|
return $url;
|
||||||
|
|
||||||
$vars['requestUrl'] = $url;
|
$vars['requestUrl'] = $url;
|
||||||
|
|
||||||
if ($type && $id_object)
|
if ($type && $id_object)
|
||||||
|
|||||||
+14
-5
@@ -65,11 +65,20 @@ class MetaCore extends ObjectModel
|
|||||||
);
|
);
|
||||||
|
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
if ($file != 'index.php' && preg_match('/^[a-z0-9_.-]*\.php$/i', $file) && !in_array(strtolower(str_replace('Controller.php', '', $file)), $exlude_pages))
|
{
|
||||||
$selected_pages[strtolower(str_replace('Controller.php', '', $file))] = strtolower(str_replace('Controller.php', '', $file));
|
if ($file != 'index.php' && !in_array(strtolower(str_replace('Controller.php', '', $file)), $exlude_pages))
|
||||||
else if ($file != 'index.php' && preg_match('/^([a-z0-9_.-]*\/)?[a-z0-9_.-]*\.php$/i', $file) && !in_array(strtolower(str_replace('Controller.php', '', $file)), $exlude_pages))
|
{
|
||||||
$selected_pages[strtolower(sprintf(Tools::displayError('%2$s (in %1$s)'), dirname($file), str_replace('Controller.php', '', basename($file))))] = strtolower(str_replace('Controller.php', '', basename($file)));
|
$reflection = new ReflectionClass(str_replace('.php', '', $file));
|
||||||
|
$properties = $reflection->getDefaultProperties();
|
||||||
|
if (isset($properties['php_self']))
|
||||||
|
$selected_pages[$properties['php_self']] = $properties['php_self'];
|
||||||
|
else if (preg_match('/^[a-z0-9_.-]*\.php$/i', $file))
|
||||||
|
$selected_pages[strtolower(str_replace('Controller.php', '', $file))] = strtolower(str_replace('Controller.php', '', $file));
|
||||||
|
else if (preg_match('/^([a-z0-9_.-]*\/)?[a-z0-9_.-]*\.php$/i', $file))
|
||||||
|
$selected_pages[strtolower(sprintf(Tools::displayError('%2$s (in %1$s)'), dirname($file), str_replace('Controller.php', '', basename($file))))] = strtolower(str_replace('Controller.php', '', basename($file)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Add modules controllers to list (this function is cool !)
|
// Add modules controllers to list (this function is cool !)
|
||||||
foreach (glob(_PS_MODULE_DIR_.'*/controllers/front/*.php') as $file)
|
foreach (glob(_PS_MODULE_DIR_.'*/controllers/front/*.php') as $file)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user