Subversion Repositories eFlore/Applications.del

Rev

Rev 2203 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2203 Rev 2213
Line 173... Line 173...
173
		return $lieu;
173
		return $lieu;
174
	}
174
	}
Line 175... Line 175...
175
 
175
 
176
	private function convertirCodeZoneGeoVersDepartement($code_zone_geo) {
176
	private function convertirCodeZoneGeoVersDepartement($code_zone_geo) {
177
		$code_departement = '';
177
		$code_departement = '';
178
		if (preg_match('/^([0-9]{2})[0-9]{3}$/', $code_zone_geo, $match)) {
178
		if (preg_match('/^INSEE-C:([0-9]{2})[0-9]{3}$/', $code_zone_geo, $match)) {
179
			$code_departement = $match[1];
179
			$code_departement = $match[1];
180
		}
180
		}
181
		return $code_departement;
181
		return $code_departement;