Ignore:
Timestamp:
Nov 28, 2011, 9:07:28 PM (13 years ago)
Author:
Eric
Message:

r12661 and r12666 merged from trunk to branche 2.30

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/branches/2.30/include/upgradedb.inc.php

    r12272 r12667  
    559559  }
    560560}
     561
     562
     563/* upgrade from 2.30.x to 2.30.2 */
     564/* ***************************** */
     565function upgrade_2300_2302()
     566{
     567  global $conf;
     568 
     569  load_language('plugin.lang', UAM_PATH);
     570
     571  // Upgrading options
     572  // -----------------
     573  $query = '
     574SELECT value
     575  FROM '.CONFIG_TABLE.'
     576WHERE param = "UserAdvManager"
     577;';
     578
     579  $result = pwg_query($query);
     580  $conf_UAM = pwg_db_fetch_assoc($result);
     581   
     582  $Newconf_UAM = unserialize($conf_UAM['value']);
     583 
     584  $Newconf_UAM[39] = 'false';
     585  $Newconf_UAM[40] = l10n('UAM_Default_RejectConnexion_Txt');
     586
     587  $update_conf = serialize($Newconf_UAM);
     588
     589  conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf));
     590}
    561591?>
Note: See TracChangeset for help on using the changeset viewer.