// Replace shop->addSqlRestriction() and shop->addSqlRestrictionOnLang() by static versions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13618 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -62,7 +62,7 @@ class StatsEquipment extends ModuleGraph
|
||||
FROM `'._DB_PREFIX_.'connections` c
|
||||
LEFT JOIN `'._DB_PREFIX_.'guest` g ON g.`id_guest` = c.`id_guest`
|
||||
WHERE c.`date_add` BETWEEN '.ModuleGraph::getDateBetween().'
|
||||
'.$this->sqlShopRestriction(false, 'c');
|
||||
'.Shop::addSqlRestriction(false, 'c');
|
||||
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->query($sql);
|
||||
|
||||
$calcArray = array(
|
||||
@@ -165,7 +165,7 @@ class StatsEquipment extends ModuleGraph
|
||||
LEFT JOIN `'._DB_PREFIX_.'guest` g ON g.`id_web_browser` = wb.`id_web_browser`
|
||||
LEFT JOIN `'._DB_PREFIX_.'connections` c ON g.`id_guest` = c.`id_guest`
|
||||
WHERE 1
|
||||
'.$this->sqlShopRestriction(false, 'c').'
|
||||
'.Shop::addSqlRestriction(false, 'c').'
|
||||
AND c.`date_add` BETWEEN ';
|
||||
$this->_query2 = ' GROUP BY g.`id_web_browser`';
|
||||
break;
|
||||
@@ -177,7 +177,7 @@ class StatsEquipment extends ModuleGraph
|
||||
LEFT JOIN `'._DB_PREFIX_.'guest` g ON g.`id_operating_system` = os.`id_operating_system`
|
||||
LEFT JOIN `'._DB_PREFIX_.'connections` c ON g.`id_guest` = c.`id_guest`
|
||||
WHERE 1
|
||||
'.$this->sqlShopRestriction(false, 'c').'
|
||||
'.Shop::addSqlRestriction(false, 'c').'
|
||||
AND c.`date_add` BETWEEN ';
|
||||
$this->_query2 = ' GROUP BY g.`id_operating_system`';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user