From 4cb796577ee06e5db0058b4a820243db1b9a48f4 Mon Sep 17 00:00:00 2001
From: Matthias Grimm <matthiasgrimm@users.sourceforge.net>
Date: Fri, 11 Nov 2005 18:01:22 +0100
Subject: [PATCH] profile change feedback

This pathc adds a feedback for the user after changing his/her
profile and the profile dialog will be closed.

darcs-hash:20051111170122-4145d-8b04e5078ac5f7f5bff2309d55002232e67f344a.gz
---
 inc/actions.php      | 2 ++
 inc/html.php         | 2 +-
 inc/lang/de/lang.php | 1 +
 inc/lang/en/lang.php | 1 +
 4 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/inc/actions.php b/inc/actions.php
index 2b5fa7ace..d17b975d7 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -53,6 +53,8 @@ function act_dispatch(){
   
   //update user profile
   if (($ACT == 'profile') && updateprofile()) {
+    msg($lang['profchanged'],1);
+    $ACT = 'show';
   }
   
   //save
diff --git a/inc/html.php b/inc/html.php
index 41272b17f..74047035b 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -903,7 +903,7 @@ function html_updateprofile(){
     </label><br />
     <?php } ?>
     
-    <input type="submit" class="button" value="<?php echo $lang['btn_profile']?>" />
+    <input type="submit" class="button" value="<?php echo $lang['btn_save']?>" />
     <input type="reset" class="button" value="<?php echo $lang['btn_reset']?>" />
   </fieldset>
   </form>
diff --git a/inc/lang/de/lang.php b/inc/lang/de/lang.php
index a62175837..733f8caf5 100644
--- a/inc/lang/de/lang.php
+++ b/inc/lang/de/lang.php
@@ -69,6 +69,7 @@ $lang['reghere']    = 'Sie haben noch keinen Zugang? Hier anmelden';
 $lang['profna']       = 'Änderung des Benutzerprofils in diesem Wiki nicht möglich.';
 $lang['profnochange'] = 'Keine Änderungen, nichts zu tun.';
 $lang['profnoempty']  = 'Es muß ein Name und eine E-Mail Adresse angegeben werden.';
+$lang['profchanged']  = 'Benuzerprofil erfolgreich geändert.';
 
 $lang['pwdforget']    = 'Passwort vergessen? Kein Problem';
 $lang['resendna']      = 'Passwörter versenden ist in diesem Wiki nicht möglich.';
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index d686f0c23..3642038dc 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -67,6 +67,7 @@ $lang['reghere']    = 'You don\'t have an account yet? Just get one';
 $lang['profna']       = 'This wiki does not support profile modification';
 $lang['profnochange'] = 'No changes, nothing to do.';
 $lang['profnoempty']  = 'An empty name or email address is not allowed.';
+$lang['profchanged']  = 'User profile sucessfully updated.';
 
 $lang['pwdforget'] = 'Forgotten your password? Get a new one';
 $lang['resendna']  = 'This wiki does not support password resending.';
-- 
GitLab