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

This commit is contained in:
gBrunier
2011-04-27 14:20:08 +00:00
parent 1f36eb2de5
commit 132bff40bd
+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