Ignore:
Timestamp:
Aug 9, 2012, 10:03:31 PM (12 years ago)
Author:
Eric
Message:

Bug 2658 fixed - Compatibility check between UAM's "email exclusion" option and Piwigo's "Mail address is mandatory for all users" to avoid configuration conflicts.

New version 2.40.4 hard coded for publication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/include/functions.inc.php

    r14857 r17507  
    2525
    2626  return $menu;
     27}
     28
     29
     30/**
     31 * Triggered on loc_begin_admin_page
     32 *
     33 * Check options compatibility
     34 */
     35function UAM_check_compat()
     36{
     37  global $conf, $page;
     38 
     39  // Check mandatory email address for email exclusion
     40  $conf_UAM = unserialize($conf['UserAdvManager']);
     41  if (!$conf['obligatory_user_mail_address'] and $conf_UAM[10] = 'true')
     42  {
     43    array_push($page['warnings'], l10n('UAM_mail_exclusion_error'));
     44  }
    2745}
    2846
Note: See TracChangeset for help on using the changeset viewer.