X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/caa254384466d5f8477de38fcf7492a1ecd3f938..2013f7a1c3ef61a66f5b158823d19c8e6ade8886:/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; }