X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/68acff62101e1c302e55befa6d526c46f15da464..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