Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1446 → Rev 1447

/trunk/widget/Widget.php
25,6 → 25,7
/** Les paramètres de l'url $_GET nettoyés. */
private $parametres = null;
private $ressources = null;
 
/**
* Constructeur.
51,10 → 52,12
if (isset($_SERVER['REQUEST_URI']) && isset($_SERVER['QUERY_STRING'])) {
$url_morceaux = $this->parserUrl();
if (isset($url_morceaux[0])) {
$this->widget = $url_morceaux[0];
$this->widget = array_shift($url_morceaux);
self::$config['chemins']['widgetCourantDossier'] = self::$config['chemins']['widgetsDossier'].strtolower($this->widget).DIRECTORY_SEPARATOR;
$this->chargerWidgetConfig();
if (isset($url_morceaux[0])) $this->ressources = $url_morceaux;
}
// Chargement des chemins pour l'autoload
$this->chargerCheminAutoload();
140,7 → 143,7
if (file_exists($fichier_widget)) {
include_once $fichier_widget;
if (class_exists($classe_widget)) {
$widget = new $classe_widget(self::$config, $this->parametres);
$widget = new $classe_widget(self::$config, $this->parametres, $this->ressources);
$widget->executer();
}
}