Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 576 Rev 577
Line 99... Line 99...
99
		if (class_exists($classe)) {
99
		if (class_exists($classe)) {
100
			return null;
100
			return null;
101
		}
101
		}
102
		$chemins = explode(';', self::$config['chemins']['autoload']);
102
		$chemins = explode(';', self::$config['chemins']['autoload']);
103
		$chemins = array_map('trim', $chemins);
103
		$chemins = array_map('trim', $chemins);
104
		array_unshift($chemins, self::$config['chemins']['widgetCourantDossier'].'bibliotheque');
104
		array_unshift($chemins, self::$config['chemins']['widgetCourantDossier'].'bibliotheque'.DIRECTORY_SEPARATOR);
105
		array_unshift($chemins, '');
105
		array_unshift($chemins, '');
-
 
106
		print_r($chemins);
106
		foreach ($chemins as $chemin) {
107
		foreach ($chemins as $chemin) {
107
			$chemin = $chemin.$classe.'.php';
108
			$chemin = $chemin.$classe.'.php';
108
			if (file_exists($chemin)) {
109
			if (file_exists($chemin)) {
109
				require_once $chemin;
110
				require_once $chemin;
110
			}
111
			}