[-] FO : Fixed bug #PSCFI-1592 - CMS category specifics meta tags was missing

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@6050 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
gBrunier
2011-04-23 11:21:09 +00:00
parent 43b6a41bbc
commit 46aa075cf6
+14
View File
@@ -653,6 +653,20 @@ class ToolsCore
return self::completeMetaTags($row, $row['meta_title']);
}
}
/* CMS category specifics meta tags */
elseif ($id_cms = self::getValue('id_cms_category'))
{
$row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow('
SELECT `meta_title`, `meta_description`, `meta_keywords`
FROM `'._DB_PREFIX_.'cms_category_lang`
WHERE id_lang = '.(int)($id_lang).' AND id_cms_category = '.(int)($id_cms));
if ($row)
{
$row['meta_title'] = $row['meta_title'].' - '.Configuration::get('PS_SHOP_NAME');
return self::completeMetaTags($row, $row['meta_title']);
}
}
}
/* Default meta tags */