X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b9757db57858fdcff8af1a6566e299559e491b17..189155ee61481277a57fc4342048a763e5b54ecb:/foto/index.php diff --git a/foto/index.php b/foto/index.php index c2cc95c..7df1d5c 100644 --- a/foto/index.php +++ b/foto/index.php @@ -12,6 +12,11 @@ if (!$User) { # cover image of current album $Page->image = "/$img"; } + if (!$Page->path) { + return array_map(function ($dir) { + return new ArchiveArticle($dir . '/index.html'); + }, glob("$rootdir/*", GLOB_ONLYDIR)); #TODO: recurse + } return; }