Commit 2725e043 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Aide de vue Messenger : bug!

parent 51e789a7
......@@ -363,10 +363,7 @@ class Messenger extends AbstractHelper implements MessageAwareInterface
*/
public function getTemplate($severity, $containerId = null)
{
// if (!isset($this->uiClasses[$severity])) {
// throw new LogicException("Sévérité inconnue: " . $severity);
// }
$severity = isset($this->uiClasses[$severity]) ? $this->uiClasses[$severity] : self::INFO;
$severity = array_key_exists($severity, $this->uiClasses) ? $severity : self::INFO;
$alertClass = $this->uiClasses[$severity][0];
$iconClass = $this->uiClasses[$severity][1];
......
Supports Markdown
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