git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login/list: ignore symlinks in profile directory
[minimedit.git]
/
widget
/
doclist.php
diff --git
a/widget/doclist.php
b/widget/doclist.php
index 2288340a1a609f923c446e996e88560049092dbb..123271bf63e024bd1292dc9253234b4782f364b6 100644
(file)
--- a/
widget/doclist.php
+++ b/
widget/doclist.php
@@
-1,5
+1,8
@@
<?php
global $User;
<?php
global $User;
+if (isset($Page->place[0])) {
+ $Page->link .= '/'.$Page->place[0];
+}
$cal = [];
foreach (glob("{$Page->link}/2*") as $url) {
$cal = [];
foreach (glob("{$Page->link}/2*") as $url) {
@@
-14,6
+17,9
@@
foreach (glob("{$Page->link}/2*") as $url) {
$cal[$group][$date][$suffix] = $link;
}
}
$cal[$group][$date][$suffix] = $link;
}
}
+if (!$cal) {
+ return;
+}
$year = 3600 * 24 * 365; # seconds per year
$scale = 7; # em width per year
$year = 3600 * 24 * 365; # seconds per year
$scale = 7; # em width per year