Skip to content

Commit

Permalink
Fix: missing entity in cache files names
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Aug 11, 2015
1 parent 3108523 commit ebe4969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/core/class/stats.class.php
Expand Up @@ -56,7 +56,7 @@ function getNbByMonthWithPrevYear($endyear,$startyear,$cachedelay=0)
include_once DOL_DOCUMENT_ROOT.'/core/lib/json.lib.php';
}

$newpathofdestfile=$conf->user->dir_temp.'/'.get_class($this).'_'.__FUNCTION__.'_'.(empty($this->cachefilesuffix)?'':$this->cachefilesuffix.'_').$langs->defaultlang.'_user'.$user->id.'.cache';
$newpathofdestfile=$conf->user->dir_temp.'/'.get_class($this).'_'.__FUNCTION__.'_'.(empty($this->cachefilesuffix)?'':$this->cachefilesuffix.'_').$langs->defaultlang.'_entity.'.$conf->entity.'_user'.$user->id.'.cache';
$newmask='0644';

$nowgmt = dol_now();
Expand Down Expand Up @@ -147,7 +147,7 @@ function getAmountByMonthWithPrevYear($endyear,$startyear,$cachedelay=0)
include_once DOL_DOCUMENT_ROOT.'/core/lib/json.lib.php';
}

$newpathofdestfile=$conf->user->dir_temp.'/'.get_class($this).'_'.__FUNCTION__.'_'.(empty($this->cachefilesuffix)?'':$this->cachefilesuffix.'_').$langs->defaultlang.'_user'.$user->id.'.cache';
$newpathofdestfile=$conf->user->dir_temp.'/'.get_class($this).'_'.__FUNCTION__.'_'.(empty($this->cachefilesuffix)?'':$this->cachefilesuffix.'_').$langs->defaultlang.'_entity.'.$conf->entity.'_user'.$user->id.'.cache';
$newmask='0644';

$nowgmt = dol_now();
Expand Down Expand Up @@ -273,7 +273,7 @@ function getAllByProductEntry($year,$cachedelay=0)
include_once DOL_DOCUMENT_ROOT.'/core/lib/json.lib.php';
}

$newpathofdestfile=$conf->user->dir_temp.'/'.get_class($this).'_'.__FUNCTION__.'_'.(empty($this->cachefilesuffix)?'':$this->cachefilesuffix.'_').$langs->defaultlang.'_user'.$user->id.'.cache';
$newpathofdestfile=$conf->user->dir_temp.'/'.get_class($this).'_'.__FUNCTION__.'_'.(empty($this->cachefilesuffix)?'':$this->cachefilesuffix.'_').$langs->defaultlang.'_entity.'.$conf->entity.'_user'.$user->id.'.cache';
$newmask='0644';

$nowgmt = dol_now();
Expand Down

0 comments on commit ebe4969

Please sign in to comment.