From 3f89a071adc7454d9945b767d35e679f5ea1a326 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 29 Sep 2007 22:15:02 +0200 Subject: [PATCH] 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 --- modules/profile/general.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)" -- 2.1.4