Use dateAdded to directory

This commit is contained in:
Michael RICOIS 2012-06-19 15:49:09 +00:00
parent 5dd639878c
commit 2d0eba0bde

View File

@ -95,7 +95,7 @@ if ( count($identifiants)==0 || count($dataProfil)==0 ) {
}
//Let's go
$mois = date('Ym');
$mois = substr($commande->dateAdded,0,4).substr($commande->dateAdded,5,2);
if(!file_exists($config->path->data.'/'.$mois))
mkdir($config->path->data.'/'.$mois);