|
17 | 17 | return; |
18 | 18 | } |
19 | 19 |
|
20 | | -class zzSeoTK extends Module |
| 20 | +class zzseotk extends Module |
21 | 21 | { |
22 | 22 | private $_controller; |
23 | 23 |
|
@@ -74,7 +74,7 @@ public function __construct() |
74 | 74 | $this->tab = 'seo'; |
75 | 75 | $this->version = '1.1.5'; |
76 | 76 | $this->need_instance = 0; |
77 | | - $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); |
| 77 | + $this->ps_versions_compliancy = array('min' => '1.5.0.1', 'max' => _PS_VERSION_); |
78 | 78 | $this->bootstrap = true; |
79 | 79 |
|
80 | 80 | parent::__construct(); |
@@ -321,12 +321,15 @@ private function _getCanonicalLink($id_lang = null, $id_shop = null, $add_qs = t |
321 | 321 | $canonical = $link->getCategoryLink($id, null, $id_lang, Tools::getValue('selected_filters', null), $id_shop); |
322 | 322 | break; |
323 | 323 | case 'cms': |
324 | | - // getCMSLink($cms, $alias = null, $ssl = null, $id_lang = null, $id_shop = null, $relative_protocol = false) |
325 | | - $canonical = $link->getCmsLink($id, null, null, $id_lang, $id_shop); |
| 324 | + if ($cat_id = (int)Tools::getValue('id_cms_category')) { |
| 325 | + // getCMSCategoryLink($cms_category, $alias = null, $id_lang = null, $id_shop = null, $relative_protocol = false) |
| 326 | + $canonical = $link->getCMSCategoryLink($cat_id, null, $id_lang, $id_shop); |
| 327 | + } else { |
| 328 | + // getCMSLink($cms, $alias = null, $ssl = null, $id_lang = null, $id_shop = null, $relative_protocol = false) |
| 329 | + $canonical = $link->getCmsLink($id, null, null, $id_lang, $id_shop); |
| 330 | + } |
326 | 331 | break; |
327 | 332 |
|
328 | | - case 'cms-category': |
329 | | - // getCMSCategoryLink ($cms_category, $alias = null, $id_lang = null, $id_shop = null, $relative_protocol = false) |
330 | 333 | case 'supplier': |
331 | 334 | // getSupplierLink ($supplier, $alias = null, $id_lang = null, $id_shop = null, $relative_protocol = false) |
332 | 335 | case 'manufacturer': |
|
0 commit comments