Ignore:
Timestamp:
May 26, 2011, 7:00:46 PM (13 years ago)
Author:
Eric
Message:

Add new feature : Users in a specified group can post comments without admin validation when "Comments for all" is enabled and admin validation is enabled.
New version 2.2.1 hard coded for publication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_Access_Manager/include/upgradedb.inc.php

    r11017 r11069  
    7474  }
    7575}
     76
     77
     78/* upgrade from 2.2.0 to 2.2.1 */
     79/* *************************** */
     80function upgradeCM_220_221()
     81{
     82  global $conf;
     83
     84  // Upgrading options
     85  $query = '
     86SELECT value
     87  FROM '.CONFIG_TABLE.'
     88WHERE param = "CommentsManager"
     89;';
     90
     91  $result = pwg_query($query);
     92  $conf_CM = pwg_db_fetch_assoc($result);
     93   
     94  $Newconf_CM = unserialize($conf_CM['value']);
     95 
     96  $Newconf_CM[4] = 'false';
     97  $Newconf_CM[5] = '-1';
     98 
     99  $update_conf = serialize($Newconf_CM);
     100
     101  conf_update_param('CommentsManager', pwg_db_real_escape_string($update_conf));
     102}
    76103?>
Note: See TracChangeset for help on using the changeset viewer.