Changeset 21100 for extensions/Prune_History/maintain.inc.php
- Timestamp:
- Mar 2, 2013, 6:28:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Prune_History/maintain.inc.php
r14854 r21100 24 24 // Default global parameters for Prune History conf 25 25 // ------------------------------------------------- 26 $defaultPH[0] = $version; // Prune History version 27 $defaultPH[1] = 'false'; // Enable automated prune 28 $defaultPH[2] = '0'; // Range 29 $defaultPH[3] = '0'; // Value (Year, month, day) 30 26 $defaultPH = array( 27 'PHVersion' => $version, // Prune History version 28 'AUTOPRUNE' => 'false', // Enable automated prune 29 'RANGEVALUE' => '0', // Range 30 'RANGE' => '0' // Value (Year, month, day) 31 ); 31 32 // Create Prune History conf if not already exists 32 33 // ------------------------------------------------ … … 57 58 PH_Obsolete_Files(); 58 59 60 include_once (PH_PATH.'include/upgradedb.inc.php'); 61 62 /* Check database upgrade */ 63 /* ********************** */ 64 $conf_PH = unserialize($conf['PruneHistory']); 65 66 if (isset($conf_PH[0])) 67 { 68 if (version_compare($conf_PH['PHVersion'], '1.1.0') < 0) 69 { 70 /* upgrade from 1.0 to 1.1 */ 71 /* *********************** */ 72 upgrade_100_110(); 73 } 74 } 75 59 76 /* Update plugin version number in #_config table */ 60 77 /* and check consistency of #_plugins table */
Note: See TracChangeset
for help on using the changeset viewer.