From: Florent Bruneau Date: Sat, 29 Sep 2007 20:15:02 +0000 (+0200) Subject: User can add "de " at the beginning of his name (if somebody has a complete X-Git-Tag: xorg/0.9.15~91 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3f89a071adc7454d9945b767d35e679f5ea1a326;p=platal.git User can add "de " at the beginning of his name (if somebody has a complete list of all possible particle, it could be useful). Signed-off-by: Florent Bruneau --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index 7af0a53..f106838 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -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)"