From fbf3433fc21f367f8c1f8c40144c863b1e8a2bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Mon, 2 Aug 2010 06:15:32 +0200 Subject: [PATCH] =?UTF-8?q?fonction=20Modules::get=5Fliste=5Fparam=C3=A8tr?= =?UTF-8?q?es()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __cms__/cms.php | 2 +- __cms__/modules/modules.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/__cms__/cms.php b/__cms__/cms.php index 88cb8d3..81c0198 100644 --- a/__cms__/cms.php +++ b/__cms__/cms.php @@ -15,7 +15,7 @@ class CMS { // TODO : appeller Modules::action($chemin, $action, $paramètres); $chemin = new Chemin($chemin_str); - $noms_params = Modules::liste_paramètres($chemin); + $noms_params = Modules::get_liste_paramètres($chemin); $noms_params[] = "action"; // récupérer $noms_params dans $_GET, $_POST et $_FILE $action = $paramètres["action"]; diff --git a/__cms__/modules/modules.php b/__cms__/modules/modules.php index 3f8855a..88d4974 100644 --- a/__cms__/modules/modules.php +++ b/__cms__/modules/modules.php @@ -13,9 +13,10 @@ class Modules { return self::$liste_modules[$type]; } - public static function liste_paramètres($chemin) { + public static function get_liste_paramètres($chemin) { // TODO - return self::get_module($chemin); + call_user_func(array(self::get_module($chemin), "get_liste_paramètres")); + return ; } }