Ticket #513: download_all.php.patch

File download_all.php.patch, 973 bytes (added by Christian Beer, 16 years ago)

patch for download_all.php

  • doc/download_all.php

     
    129129    }
    130130    list_bar($long_name);
    131131    foreach ($p["versions"] as $i=>$v) {
    132         if ($min_version && strcmp($v['num'], $min_version)<0) continue;
    133         if ($max_version && strcmp($v['num'], $max_version)>0) continue;
     132        if ($min_version && version_compare($v['num'], $min_version, "<")) continue;
     133        if ($max_version && version_compare($v['num'], $max_version, ">")) continue;
    134134        if (!$dev && is_dev($v)) continue;
    135135        show_version($short_name, $i, $v);
    136136    }
     
    208208    echo "
    209209        <p>
    210210        Download information can be restricted by
    211         platform and/or version number, 
     211        platform and/or version number,
    212212        and can be obtained in XML format.
    213213        <a href=trac/wiki/DownloadInfo>Details</a>.
    214214    ";