Ignore:
Timestamp:
Feb 6, 2006, 10:52:16 PM (18 years ago)
Author:
plg
Message:

improvement: upgrades id retrieving in include/common.inc.php and
upgrade_feed.php are now made by dedicated function
get_available_upgrade_ids.

bug fixed: after an installation, you had to play all available upgrades,
which was wrong. install.php inserts informations related to all available
upgrades at installation time. Thus avoiding automatic upgrades.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upgrade_feed.php

    r953 r1027  
    5757
    5858// retrieve existing upgrades
    59 $existing = array();
    60 
    61 if ($contents = opendir(UPGRADES_PATH))
    62 {
    63   while (($node = readdir($contents)) !== false)
    64   {
    65     if (is_file(UPGRADES_PATH.'/'.$node)
    66         and preg_match('/^(.*?)-database\.php$/', $node, $match))
    67     {
    68       array_push($existing, $match[1]);
    69     }
    70   }
    71 }
    72 natcasesort($existing);
     59$existing = get_available_upgrade_ids();
    7360
    7461// which upgrades need to be applied?
Note: See TracChangeset for help on using the changeset viewer.