// fix issue in feeder module

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16023 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2012-06-14 14:02:14 +00:00
parent 32b0f72b74
commit 3e46c466a8
+4 -4
View File
@@ -31,9 +31,9 @@ require_once(dirname(__FILE__).'/../../init.php');
$number = ((int)(Tools::getValue('n')) ? (int)(Tools::getValue('n')) : 10);
$orderBy = Tools::getProductsOrder('by', Tools::getValue('orderby'));
$orderWay = Tools::getProductsOrder('way', Tools::getValue('orderway'));
$id_category = ((int)(Tools::getValue('id_category')) ? (int)(Tools::getValue('id_category')) : 1);
$products = Product::getProducts((int)($cookie->id_lang), 0, ($number > 10 ? 10 : $number), $orderBy, $orderWay, $id_category, true);
$currency = new Currency((int)($cookie->id_currency));
$id_category = ((int)(Tools::getValue('id_category')) ? (int)(Tools::getValue('id_category')) : Configuration::get('PS_HOME_CATEGORY'));
$products = Product::getProducts((int)Context::getContext()->language->id, 0, ($number > 10 ? 10 : $number), $orderBy, $orderWay, $id_category, true);
$currency = new Currency((int)Context::getContext()->currency->id);
$affiliate = (Tools::getValue('ac') ? '?ac='.(int)(Tools::getValue('ac')) : '');
// Send feed
@@ -75,4 +75,4 @@ echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
}
?>
</channel>
</rss>
</rss>