User can add "de " at the beginning of his name (if somebody has a complete
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 29 Sep 2007 20:15:02 +0000 (22:15 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 29 Sep 2007 20:15:02 +0000 (22:15 +0200)
list of all possible particle, it could be useful).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/profile/general.inc.php

index 7af0a53..f106838 100644 (file)
@@ -49,7 +49,8 @@ class ProfileNom implements ProfileSetting
         $new = $this->prepareField($value);
         $newLen = strlen($new);
         $success = $this->matchWord($old, $new, $newLen)
-                || $this->matchWord($ini, $new, $newLen);
+                || $this->matchWord($ini, $new, $newLen)
+                || ($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)"