Ignore:
Timestamp:
Nov 30, 2012, 10:09:53 PM (11 years ago)
Author:
Eric
Message:

Merge r19234 from trunk to branch 2.41 :
Bug 2765 fixed - Code cleanup
Bug 2788 fixed : Warning message on email exclusion no more remains if misconfiguration is fixed. But it's still necessary to refresh the current page once for the warning message to disappear.
Bug 2796 fixed - Use of php date() function instead od MySql NOW() - Usefull if MySql server is not set at the same date-time as Apache/Php server
Update da_DK, thanks to : Kaare
Update it_IT, thanks to : virgigiole
Update lv_LV, thanks to : agrisans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/branches/2.41/admin/UAM_admin.php

    r18239 r19235  
    152152                                if ($conf['obligatory_user_mail_address'])
    153153                                {
    154                                                         // Check if CR-LF exist at begining and end of mail exclusion list - If yes, removes them
    155                 // --------------------------------------------------------------------------------------
    156                 if (preg_match('/^[\s]+/', $_POST['UAM_MailExclusion_List']))
    157                 {
    158                 array_push($page['errors'], l10n('UAM_mail_exclusionlist_error'));
    159                 $UAM_Exclusionlist_Error = true;
    160                 }
    161                 }
    162                 elseif (!$conf['obligatory_user_mail_address'])
    163                 {
    164                 $_POST['UAM_MailExclusion_List'] = '';
    165                 }
     154          // Check if CR-LF exist at begining and end of mail exclusion list - If yes, removes them
     155          // --------------------------------------------------------------------------------------
     156                  if (preg_match('/^[\s]+/', $_POST['UAM_MailExclusion_List']))
     157                  {
     158                  array_push($page['errors'], l10n('UAM_mail_exclusionlist_error'));
     159                  $UAM_Exclusionlist_Error = true;
     160                  }
     161                  }
     162                  elseif (!$conf['obligatory_user_mail_address'])
     163                  {
     164                  $_POST['UAM_MailExclusion_List'] = '';
     165                  }
    166166
    167167    // Consistency check between ConfirmMail and AutoMail - We cannot use GTAutoMail if ConfirmMail is disabled
     
    16171617        while ($row = pwg_db_fetch_assoc($result))
    16181618        {
    1619           list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
     1619          $dbnow = date("Y-m-d H:i:s");
    16201620           
    16211621          $query = '
     
    16451645        while($row = pwg_db_fetch_assoc($result))
    16461646        {
    1647           list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
     1647          $dbnow = date("Y-m-d H:i:s");
    16481648           
    16491649          $query = '
Note: See TracChangeset for help on using the changeset viewer.