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]; }