]> git.ozlabs.org Git - ccan/blobdiff - web/staticall.php
tal: fix tal_check description
[ccan] / web / staticall.php
index ac39eddca23bd69b02ac06de4876f2aa0e3930fe..e976406b3330a9082d20c5c5c69e38eca90869a9 100644 (file)
@@ -25,13 +25,7 @@ Or you can just download the <a href="ccan.tar.bz2">tarball of everything includ
 <th align="right">Download</th>
 
 <?php 
-$d = dir($argv[1]);
-$modules = array();
-while (false !== ($entry = $d->read())) {
-       if ($entry[0] != '.' && is_file($argv[1].$entry."/_info.c")) {
-               array_push($modules, $entry);
-       }
-}
+$modules = array_slice($argv, 4);
 sort($modules);
 
 foreach ($modules as $module) {
@@ -49,7 +43,6 @@ foreach ($modules as $module) {
        </tr>
        <?php
 }
-$d->close();
 ?>
 </table>