diff options
Diffstat (limited to 'upgrade_feed.php')
-rw-r--r-- | upgrade_feed.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/upgrade_feed.php b/upgrade_feed.php index c26390a0d..ca9f9d0c3 100644 --- a/upgrade_feed.php +++ b/upgrade_feed.php @@ -56,20 +56,7 @@ SELECT id $applied = array_from_query($query, 'id'); // retrieve existing upgrades -$existing = array(); - -if ($contents = opendir(UPGRADES_PATH)) -{ - while (($node = readdir($contents)) !== false) - { - if (is_file(UPGRADES_PATH.'/'.$node) - and preg_match('/^(.*?)-database\.php$/', $node, $match)) - { - array_push($existing, $match[1]); - } - } -} -natcasesort($existing); +$existing = get_available_upgrade_ids(); // which upgrades need to be applied? $to_apply = array_diff($existing, $applied); |