Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1136 Rev 1170
Line 71... Line 71...
71
	}
71
	}
Line 72... Line 72...
72
	
72
	
73
	private function extraireIdDeUrl($url) {
73
	private function extraireIdDeUrl($url) {
74
		$matches = array();
74
		$matches = array();
75
		$formats = implode("|", $this->formats_possibles);
75
		$formats = implode("|", $this->formats_possibles);
-
 
76
		//preg_match('#cel-img:([0-9]*)('.$formats.')#', $url, $matches);
76
		preg_match('#cel-img:([0-9]*)('.$formats.')#', $url, $matches);
77
		preg_match('#img:([0-9]*)('.$formats.')#', $url, $matches); // expèrons que ça va marcher
77
		return ltrim($matches[1],'0');
78
		return ltrim($matches[1],'0');
Line 78... Line 79...
78
	}
79
	}
79
	
80