Ignore:
Timestamp:
Mar 2, 2013, 6:28:58 PM (11 years ago)
Author:
Eric
Message:

Next version will be 1.1.0 :

  • Compliance with Piwigo 2.5
  • Code refactory : Change config variables to assoc array and $_POST vars control before writing conf in database - Thx to flop25 for his advices ;-)
  • Bug fixed : Unable to restore an history backup file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Prune_History/maintain.inc.php

    r14854 r21100  
    2424  // Default global parameters for Prune History conf
    2525  // -------------------------------------------------
    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  );
    3132  // Create Prune History conf if not already exists
    3233  // ------------------------------------------------
     
    5758  PH_Obsolete_Files();
    5859
     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
    5976/* Update plugin version number in #_config table */
    6077/* and check consistency of #_plugins table       */
Note: See TracChangeset for help on using the changeset viewer.