nieuws: article index on sitemap request
[minimedit.git] / foto / index.php
index c2cc95c730a37361bc82143085340dc8593df233..1e973c786c14855a2c56b998de5db72f4b9359b0 100644 (file)
@@ -12,6 +12,9 @@ if (!$User) {
                # cover image of current album
                $Page->image = "/$img";
        }
+       if (!$Page->path) {
+               return glob("$rootdir/*", GLOB_ONLYDIR); #TODO: recurse
+       }
        return;
 }