[-] MO : Fixed bug #PSCFI-1574 - When only one language was activated iso code was still used.

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@6077 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
gBrunier
2011-04-27 14:20:08 +00:00
parent b32dc579cf
commit 1044d7be8c
+1 -1
View File
@@ -89,7 +89,7 @@ XML;
$xml = new SimpleXMLElement($xmlString);
if (Configuration::get('PS_REWRITING_SETTINGS'))
if (Configuration::get('PS_REWRITING_SETTINGS') AND count($langs) > 1)
foreach($langs as $lang)
$this->_addSitemapNode($xml, Tools::getShopDomain(true, true).__PS_BASE_URI__.$lang['iso_code'].'/', '1.00', 'daily', date('Y-m-d'));
else