Changeset 9400 for extensions
- Timestamp:
- Feb 27, 2011, 6:57:20 PM (14 years ago)
- Location:
- extensions/LCAS/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/admin/LCAS_admin.php
r9398 r9400 102 102 if ($count < 1) 103 103 { 104 // Get old username befor update - Usefull for user notification if is set 105 $query =' 106 SELECT username 107 FROM '.USERS_TABLE.' 108 WHERE id = '.$lcas_UserToUpdate.' 109 ;'; 110 111 $data = pwg_db_fetch_assoc(pwg_query($query)); 112 104 113 // Username update 105 114 $query = ' … … 114 123 if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 115 124 { 116 LCAS_SendMail($lcas_UserToUpdate, $ _POST['user-'.$lcas_UserToUpdate]);125 LCAS_SendMail($lcas_UserToUpdate, $data['username'], $_POST['user-'.$lcas_UserToUpdate]); 117 126 } 127 118 128 // Reloading conflict table content 119 129 $page['all_users'] = LCAS_get_user_list($conf_LCAS[0]); -
extensions/LCAS/trunk/include/functions.inc.php
r9395 r9400 87 87 88 88 /* Function called from LCAS_admin.php to send notification email */ 89 function LCAS_SendMail($id, $ username)89 function LCAS_SendMail($id, $oldusername, $username) 90 90 { 91 91 global $conf; … … 117 117 } 118 118 119 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Username_updated_for_%s', stripslashes($ username)));119 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Username_updated_for_%s', stripslashes($oldusername))); 120 120 121 121 if (isset($conf_LCAS[2]) and $conf_LCAS[2] <> '') … … 134 134 WHERE id = '.$id.' 135 135 ;'; 136 136 137 $data = pwg_db_fetch_assoc(pwg_query($query)); 138 139 /* User standard information */ 140 $info = array( 141 get_l10n_args('LCAS_NewUsername: %s', stripslashes($username)), 142 get_l10n_args('LCAS_NewUser_Email: %s',$data['mail_address']), 143 get_l10n_args('', ''), 144 ); 137 145 138 146 /* Send the email with subject and contents */ 139 147 pwg_mail($data['mail_address'], array( 140 148 'subject' => $subject, 141 'content' => ($customtxt ),149 'content' => ($customtxt."\n\n").(l10n_args($info)), 142 150 )); 143 151 -
extensions/LCAS/trunk/language/en_UK/plugin.lang.php
r9388 r9400 50 50 /* Email subject */ 51 51 $lang['Username_updated_for_%s'] = 'Username update for %s'; 52 $lang['LCAS_NewUsername: %s'] = 'Your new username : %s'; 53 $lang['LCAS_NewUser_Email: %s'] = 'Related to this email address : %s'; 52 54 ?> -
extensions/LCAS/trunk/language/fr_FR/plugin.lang.php
r9388 r9400 48 48 $lang['LCAS_EnableOption'] = ' Activer'; 49 49 50 /* Email subject*/50 /* Emailing */ 51 51 $lang['Username_updated_for_%s'] = 'Nom d\'utilisateur mis à jour pour %s'; 52 $lang['LCAS_NewUsername: %s'] = 'Votre nouveau nom d\'utilisateur : %s'; 53 $lang['LCAS_NewUser_Email: %s'] = 'Correspondant à l\'adresse email : %s'; 52 54 ?>
Note: See TracChangeset
for help on using the changeset viewer.