Ignore:
Timestamp:
Feb 27, 2011, 6:57:20 PM (13 years ago)
Author:
Eric
Message:

bug 2206 fixed : The email sent to renamed users shows standard information (new username and related email address) in addition of customizable text. The email subject shows the old username.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/admin/LCAS_admin.php

    r9398 r9400  
    102102          if ($count < 1)
    103103          {
     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 
    104113            // Username update
    105114            $query = '
     
    114123            if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true')
    115124            {
    116               LCAS_SendMail($lcas_UserToUpdate, $_POST['user-'.$lcas_UserToUpdate]);
     125              LCAS_SendMail($lcas_UserToUpdate, $data['username'], $_POST['user-'.$lcas_UserToUpdate]);
    117126            }
     127
    118128            // Reloading conflict table content
    119129            $page['all_users'] = LCAS_get_user_list($conf_LCAS[0]);
Note: See TracChangeset for help on using the changeset viewer.