From: Stéphane Jacob Date: Sat, 10 Jul 2010 21:54:51 +0000 (+0200) Subject: Informs user that her name change is awaiting validation (Closes #1083). X-Git-Tag: xorg/1.0.1~355 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=bd3e755e0ada1976f07776f3604bc7dd224d56b2;p=platal.git Informs user that her name change is awaiting validation (Closes #1083). Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index a9afd28..09c7bae 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -126,6 +126,11 @@ class ProfileSettingSearchNames implements ProfileSetting $value[] = $sn; } while ($sn = $sn_all->next()); } + require_once 'validations.inc.php'; + $namesRequest = ProfileValidate::get_typed_requests($page->pid(), 'usage'); + if (count($namesRequest) > 0) { + Platal::page()->assign('validation', true); + } $value = $this->clean($value); } else { require_once 'name.func.inc.php'; diff --git a/templates/profile/general.tpl b/templates/profile/general.tpl index aae79e1..cdac3c3 100644 --- a/templates/profile/general.tpl +++ b/templates/profile/general.tpl @@ -22,7 +22,7 @@ - +
NomsNoms{if $validation} (validations en attente de modération){/if}