Skip to content
Snippets Groups Projects
Commit 94709078 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel 23988: reactivate stats collect in stats_notices table

parent 6bd145cf
Branches
Tags
3 merge requests!903Master,!902Hotline master,!899Hotline#23865 reactivate visu count in stats notices
......@@ -41,8 +41,11 @@ class Class_StatsNotices {
protected function _addStat($id_notice, $field) {
$annee = date('Y');
$mois = date('m');
sqlExecute(sprintf('update notices set %s = %s + 1 where id_notice=%s',
$field, $field, $id_notice));
// @see http://forge.afi-sa.fr/issues/23151
/*
sqlExecute(sprintf('update notices set %s = %s + 1 where id_notice=%s', $field, $field, $id_notice));
*/
if (!fetchOne(sprintf('select count(*) from stats_notices where annee=%s and mois=%s',
$annee, $mois)))
......@@ -171,9 +174,6 @@ class Class_StatsNotices {
protected function _isBlackListed() {
// @see http://forge.afi-sa.fr/issues/23151
return true;
$robots = explode(';', getVar('BLACK_LIST_ROBOT'));
$client = null;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment