- Timestamp:
- Dec 18, 2014, 9:54:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/include/upgradedb.inc.php
r25092 r30776 863 863 pwg_query($q); 864 864 } 865 866 867 /* upgrade from 2.51.x to 2.70.3 */ 868 /* ***************************** */ 869 function upgrade_2510_2703() 870 { 871 global $conf; 872 873 load_language('plugin.lang', UAM_PATH); 874 875 // Upgrading options 876 // ----------------- 877 $query = ' 878 SELECT value 879 FROM '.CONFIG_TABLE.' 880 WHERE param = "UserAdvManager" 881 ;'; 882 883 $result = pwg_query($query); 884 $conf_UAM = pwg_db_fetch_assoc($result); 885 886 $Newconf_UAM = unserialize($conf_UAM['value']); 887 888 // Add "send a copy of all emails to admins" new option 889 $Newconf_UAM['EMAILS_COPY_TO_ADMINS'] = 'false'; 890 891 $update_conf = serialize($Newconf_UAM); 892 893 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 894 } 865 895 ?>
Note: See TracChangeset
for help on using the changeset viewer.