Changeset 18650


Ignore:
Timestamp:
Oct 16, 2012, 10:40:32 AM (8 years ago)
Author:
mistic100
Message:

little fix in upgrade procedure when in test period (version not known)

Location:
extensions/skeleton
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/skeleton/include/install.inc.php

    r18408 r18650  
    3131  else
    3232  {
    33     // if you need to test "old" configuration you must check is not yet unserialized
     33    // if you need to test the "old" configuration you must check if not yet unserialized
    3434    $old_conf = is_string($conf['skeleton']) ? unserialize($conf['skeleton']) : $conf['skeleton'];
    3535  }
  • extensions/skeleton/main.inc.php

    r18408 r18650  
    101101  // apply upgrade if needed
    102102  if (
     103    SKELETON_VERSION == 'auto' or
    103104    $pwg_loaded_plugins[SKELETON_ID]['version'] == 'auto' or
    104105    version_compare($pwg_loaded_plugins[SKELETON_ID]['version'], SKELETON_VERSION, '<')
     
    110111   
    111112    // update plugin version in database
    112     if ($pwg_loaded_plugins[SKELETON_ID]['version'] != 'auto')
     113    if ( $pwg_loaded_plugins[SKELETON_ID]['version'] != 'auto' and SKELETON_VERSION != 'auto' )
    113114    {
    114115      $query = '
Note: See TracChangeset for help on using the changeset viewer.