Commit 7eb51ff8 authored by Sylvain's avatar Sylvain

Exception - Modèle de tag

parent c9ffddc9
......@@ -139,6 +139,9 @@ class Template4Bt4
if (is_array($data)) {
$datas_default[$key] = $this->replaceDefaultsAction($data);
} else {
if (preg_match('/^\[.*\]$/', $data) && !array_key_exists($data, $models_action)) {
throw new \InvalidArgumentException("Modèle d'action non reconnu : " . $data);
}
$datas_default[$key] = data_get($models_action, $data, $data);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment