This commit is contained in:
Michael RICOIS 2013-06-28 13:43:25 +00:00
parent b79836fcdc
commit 2e49a297f5

View File

@ -288,7 +288,7 @@ foreach ($tabCommandes as $ref => $commande){
&& !file_exists(PATH_DATA.$path.$nomCible)) {
if (rename(ACTES_IGNUM_LOCAL_DIR.$fichier, PATH_DATA.$path.$nomCible)){
if ( $type == 'acte' ){
preg_match('/^acte-([0-9]{9})-([0-9a-zA-Z]{1,})-([0-9]{8})-(.*)-(.*)-(.*)-(.*)-(.*)-([0-9]{1,})\.pdf$/', $fichier, $matches);
preg_match('/^acte-([0-9]{9})-([0-9a-zA-Z]{1,})-([0-9]{8})-(.*)-(.*)-(.*)-(.*)-(.*)-([0-9]{1,})\.pdf$/', $nomCible, $matches);
$siren = $matches[1];
$type_acte = $matches[2];
$date_acte = $matches[3];