// Replace shop->addSqlAssociation() by static call

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13620 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-02-27 13:07:51 +00:00
parent c2cef61a5a
commit 4ee2698992
23 changed files with 55 additions and 75 deletions
+2 -2
View File
@@ -2288,7 +2288,7 @@ class BlockLayered extends Module
}
if (version_compare(_PS_VERSION_,'1.5','>'))
$queryFiltersFrom .= Context::getContext()->shop->addSqlAssociation('product', 'p');
$queryFiltersFrom .= Shop::addSqlAssociation('product', 'p');
$allProductsOut = self::query('
SELECT p.`id_product` id_product
@@ -2624,7 +2624,7 @@ class BlockLayered extends Module
if (!empty($sqlQuery['from']))
{
if (version_compare(_PS_VERSION_,'1.5','>'))
$sqlQuery['from'] .= Context::getContext()->shop->addSqlAssociation('product', 'p');
$sqlQuery['from'] .= Shop::addSqlAssociation('product', 'p');
$products = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sqlQuery['select']."\n".$sqlQuery['from']."\n".$sqlQuery['join']."\n".$sqlQuery['where']."\n".$sqlQuery['group']);
}