From ab92f90f1a25903faa2aa6979cbbe7b5b78b47ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Tue, 3 Aug 2010 21:16:31 +0200 Subject: [PATCH] =?UTF-8?q?Erreur=20lorsqu'on=20ne=20peut=20pas=20d=C3=A9t?= =?UTF-8?q?ecter=20le=20type.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __cms__/code/modules/modules.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/__cms__/code/modules/modules.php b/__cms__/code/modules/modules.php index d2e2ddd..cb0f167 100644 --- a/__cms__/code/modules/modules.php +++ b/__cms__/code/modules/modules.php @@ -15,7 +15,10 @@ class Modules { public static function get_module($chemin) { $type = Stockage::get_prop($chemin, "type"); - if ($type === false || !isset(self::$liste_modules[$type])) return false; + if ($type === false || !isset(self::$liste_modules[$type])) { + Erreur::fatale("Type inconnu (" . $type . ") pour la page " . $chemin->get() . "."); + // return false; + } return self::$liste_modules[$type]; }