git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edit/page: ckeditor image upload to user dir, returned as thumb
[minimedit.git]
/
foto
/
index.php
diff --git
a/foto/index.php
b/foto/index.php
index 1e973c786c14855a2c56b998de5db72f4b9359b0..7df1d5c26daa1c27ed9efda43531f6997fe96d4e 100644
(file)
--- a/
foto/index.php
+++ b/
foto/index.php
@@
-13,7
+13,9
@@
if (!$User) {
$Page->image = "/$img";
}
if (!$Page->path) {
$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;
}
}
return;
}