Switch to the new trigger pattern.
[platal.git] / modules / profile / general.inc.php
index ac81f59..1382658 100644 (file)
@@ -53,7 +53,7 @@ class ProfileNom implements ProfileSetting
                 || ($field == 'nom' && $new == 'DE ' . $old);
         if (!$success) {
             global $page;
-            $page->trig("Le $field que tu as choisi ($value) est trop loin de ton $field initial ($init)"
+            $page->trigError("Le $field que tu as choisi ($value) est trop loin de ton $field initial ($init)"
                        . (($init == $current)? "" : " et de ton prénom précédent ($current)"));
         }
         return $success ? $value : $current;