Subversion Repositories eFlore/Projets.communes

Compare Revisions

Ignore whitespace Rev 13 → Rev 14

/trunk/modules/nettoyage_kml/NettoyageKml.php
42,7 → 42,7
$nom_kml = basename($kml, '.kml');
$dossier_kml = dirname($kml);
$dpt = '00';
if (preg_match('/^([0-9]{2})/', $nom_kml, $match)) {
if (preg_match('/^([0-9]{2}|2[AB])/', $nom_kml, $match)) {
$dpt = $match[1];
}
$fichier_sortie = $dossier_kml.DS.$dpt.'%s.kml';
/branches/v0.1-y/modules/nettoyage_kml/NettoyageKml.php
42,7 → 42,7
$nom_kml = basename($kml, '.kml');
$dossier_kml = dirname($kml);
$dpt = '00';
if (preg_match('/^([0-9]{2})/', $nom_kml, $match)) {
if (preg_match('/^([0-9]{2}|2[AB])/', $nom_kml, $match)) {
$dpt = $match[1];
}
$fichier_sortie = $dossier_kml.DS.$dpt.'%s.kml';