X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..f547127c637332119b42329ca78d0e1a659d9739:/widget/doclist.php diff --git a/widget/doclist.php b/widget/doclist.php index 2288340..123271b 100644 --- a/widget/doclist.php +++ b/widget/doclist.php @@ -1,5 +1,8 @@ place[0])) { + $Page->link .= '/'.$Page->place[0]; +} $cal = []; foreach (glob("{$Page->link}/2*") as $url) { @@ -14,6 +17,9 @@ foreach (glob("{$Page->link}/2*") as $url) { $cal[$group][$date][$suffix] = $link; } } +if (!$cal) { + return; +} $year = 3600 * 24 * 365; # seconds per year $scale = 7; # em width per year