From ec353b8ff2ba4e3bb82c41a929d7a9441a305cb5 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 29 Mar 2012 15:34:31 +0000 Subject: [PATCH] // Blocklayered: Remove not useful method --- modules/blocklayered/blocklayered.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index 9792aa618..532f579bd 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -3167,11 +3167,11 @@ class BlockLayered extends Module $nofollow = true; if (version_compare(_PS_VERSION_,'1.5','>')) - $type_filter['values'][$key]['link'] = $this->getCategoryLink($parent, ltrim($parameters, '/')); + $type_filter['values'][$key]['link'] = Context::getContext()->link->getCategoryLink($parent, null, null, ltrim($parameters, '/')); else { $link = new Link(); - $link_base = $link->getCategoryLink($id_parent, Category::getLinkRewrite($id_parent, (int)($cookie->id_lang)), (int)($cookie->id_lang)); + $link_base = $link->getCategoryLink($id_parent, Category::getLinkRewrite($id_parent, $id_lang), $id_lang); // Write link by mode rewriting if (!Configuration::get('PS_REWRITING_SETTINGS')) $type_filter['values'][$key]['link'] = $link_base.'&selected_filters='.$parameters; @@ -3212,19 +3212,6 @@ class BlockLayered extends Module return $cache; } - /** - * Create a link to a category with a filter params - * - * @param mixed $category Category object (can be an ID category, but deprecated) - * @param string $selected_filters - * @return string - */ - public function getCategoryLink($category, $selected_filters = '') - { - return Context::getContext()->link->getCategoryLink($category, null, null, $selected_filters); - } - - public function cleanFilterByIdValue($attributes, $id_value) { $selected_filters = array();