Informs user that her name change is awaiting validation (Closes #1083).
authorStéphane Jacob <sj@m4x.org>
Sat, 10 Jul 2010 21:54:51 +0000 (23:54 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 12 Jul 2010 10:37:04 +0000 (12:37 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/general.inc.php
templates/profile/general.tpl

index a9afd28..09c7bae 100644 (file)
@@ -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';
index aae79e1..cdac3c3 100644 (file)
@@ -22,7 +22,7 @@
 
 <table class="bicol" style="margin-bottom: 1em" summary="Profil : Noms">
   <tr>
-    <th colspan="3">Noms</th>
+    <th colspan="3">Noms{if $validation} <small>(validations en attente de modération)</small>{/if}</th>
   </tr>
   <tr>
     <td class="titre">