// 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:
@@ -59,7 +59,7 @@ class StatsVisits extends ModuleGraph
|
||||
$sql = 'SELECT COUNT(c.`id_connections`)
|
||||
FROM `'._DB_PREFIX_.'connections` c
|
||||
WHERE c.`date_add` BETWEEN '.ModuleGraph::getDateBetween().'
|
||||
'.$this->sqlShopRestriction(false, 'c');
|
||||
'.Shop::addSqlRestriction(false, 'c');
|
||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($sql);
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ class StatsVisits extends ModuleGraph
|
||||
$sql = 'SELECT COUNT(DISTINCT c.`id_guest`)
|
||||
FROM `'._DB_PREFIX_.'connections` c
|
||||
WHERE c.`date_add` BETWEEN '.ModuleGraph::getDateBetween().'
|
||||
'.$this->sqlShopRestriction(false, 'c');
|
||||
'.Shop::addSqlRestriction(false, 'c');
|
||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($sql);
|
||||
}
|
||||
|
||||
@@ -120,12 +120,12 @@ class StatsVisits extends ModuleGraph
|
||||
$this->_query[0] = 'SELECT date_add, COUNT(`date_add`) as total
|
||||
FROM `'._DB_PREFIX_.'connections`
|
||||
WHERE 1
|
||||
'.$this->sqlShopRestriction().'
|
||||
'.Shop::addSqlRestriction().'
|
||||
AND `date_add` BETWEEN ';
|
||||
$this->_query[1] = 'SELECT date_add, COUNT(DISTINCT `id_guest`) as total
|
||||
FROM `'._DB_PREFIX_.'connections`
|
||||
WHERE 1
|
||||
'.$this->sqlShopRestriction().'
|
||||
'.Shop::addSqlRestriction().'
|
||||
AND `date_add` BETWEEN ';
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user