Subversion Repositories Applications.wikini

Rev

Rev 60 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 60 Rev 61
Line 34... Line 34...
34
	}
34
	}
Line 35... Line 35...
35
	
35
	
Line 36... Line 36...
36
	protected function migrerFormatSmartFlore() {	
36
	protected function migrerFormatSmartFlore() {	
37
 
37
 
38
		// sections "souples" - attention, ne seront pas "quotées" mais interprétées comme morceaux de regexp directement !
38
		// sections "souples" - attention, ne seront pas "quotées" mais interprétées comme morceaux de regexp directement !
39
		$sections = array("Fiche simplifi.+e Smart.+flore", "Introduction","Comment la reconna.+tre.+","Son histoire","Ses usages",".+cologie.+habitat","Ce qu.+il faut savoir.+","Sources");
39
		$sections = array("Fiche simplifi.+e Smart.+flore", "Introduction","Comment la reconna.+tre.+","Son histoire","Ses usages",".+(?:cologie|habitat).+","Ce qu.+il faut savoir.+","Sources");
40
		$nouvelles_sections = array(
40
		$nouvelles_sections = array(
41
			"Description" => array("Introduction","Comment la reconna.+tre.+","Son histoire"),
41
			"Description" => array("Introduction","Comment la reconna.+tre.+","Son histoire"),
42
			"Usages" => array("Ses usages", "Ce qu.+il faut savoir.+"),
42
			"Usages" => array("Ses usages", "Ce qu.+il faut savoir.+"),
43
			"Écologie & habitat" => array(".+cologie.+habitat"),
43
			"Écologie & habitat" => array(".+(?:cologie|habitat).+"), // groupe non-capturant avec (?:a|b)
Line 44... Line 44...
44
			"Sources" => array("Sources")
44
			"Sources" => array("Sources")
45
		);
45
		);