- Timestamp:
- Sep 19, 2011, 9:48:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/include/upgradedb.inc.php
r11018 r12189 492 492 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 493 493 } 494 495 496 /* upgrade from 2.20.8 to 2.30.0 */ 497 /* ***************************** */ 498 function upgrade_2208_2300() 499 { 500 global $conf; 501 502 // Upgrading options 503 $query = ' 504 SELECT value 505 FROM '.CONFIG_TABLE.' 506 WHERE param = "UserAdvManager" 507 ;'; 508 509 $result = pwg_query($query); 510 $conf_UAM = pwg_db_fetch_assoc($result); 511 512 $Newconf_UAM = unserialize($conf_UAM['value']); 513 514 $Newconf_UAM[35] = '-1'; 515 $Newconf_UAM[36] = '-1'; 516 $Newconf_UAM[37] = '-1'; 517 518 $update_conf = serialize($Newconf_UAM); 519 520 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 521 } 494 522 ?>
Note: See TracChangeset
for help on using the changeset viewer.