X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/1d0e94b9030f08157198b6e4911491698e9d2f5f..v4.5-30-gee9702f9ff:/foto/index.php diff --git a/foto/index.php b/foto/index.php index 1e973c7..7df1d5c 100644 --- a/foto/index.php +++ b/foto/index.php @@ -13,7 +13,9 @@ if (!$User) { $Page->image = "/$img"; } if (!$Page->path) { - return glob("$rootdir/*", GLOB_ONLYDIR); #TODO: recurse + return array_map(function ($dir) { + return new ArchiveArticle($dir . '/index.html'); + }, glob("$rootdir/*", GLOB_ONLYDIR)); #TODO: recurse } return; }