Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 3 Rev 7
Line 8... Line 8...
8
*/
8
*/
9
function chargerClasse($classe) {
9
function chargerClasse($classe) {
10
	if (class_exists($classe)) {
10
	if (class_exists($classe)) {
11
		return null;
11
		return null;
12
	}
12
	}
13
	
-
 
14
	$chemins = array(realpath(__DIR__.'/../modules/0.1').'/');
13
	$cheminBase = realpath(__DIR__.'/../modules/0.1').'/';
-
 
14
	$chemins = array($cheminBase);
15
	foreach ($chemins as $chemin) {
15
	foreach ($chemins as $chemin) {
16
		$chemin = $chemin.$classe.'.php';
16
		$chemin = $chemin.$classe.'.php';
17
		if (file_exists($chemin)) {
17
		if (file_exists($chemin)) {
18
			require_once $chemin;
18
			require_once $chemin;
19
		}
19
		}