From bd3e755e0ada1976f07776f3604bc7dd224d56b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sat, 10 Jul 2010 23:54:51 +0200 Subject: [PATCH] Informs user that her name change is awaiting validation (Closes #1083). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/general.inc.php | 5 +++++ templates/profile/general.tpl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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}
-- 2.1.4