X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/bb34842b36ded0bbe7e6f51294ad3d20c8d470da..772961fd4e9be46ad340cad1e55ee5f28cc5b968:/widget/doclist.php diff --git a/widget/doclist.php b/widget/doclist.php index 589c8d6..2288340 100644 --- a/widget/doclist.php +++ b/widget/doclist.php @@ -2,7 +2,7 @@ global $User; $cal = []; -foreach (glob("$Page$Args/2*") as $url) { +foreach (glob("{$Page->link}/2*") as $url) { $link = preg_replace('/\.html$/', '', $url); $name = pathinfo($link, PATHINFO_BASENAME); @list ($date, $suffix) = explode('.', $name, 2); @@ -42,7 +42,7 @@ foreach (array_reverse($cal, TRUE) as $group => $rows) { else { print ''; print $title; - if ($versions and $User->admin("edit $Page$Args")) { + if ($versions and $User->admin("edit {$Page->link}")) { printf(' (%s)', implode(', ', array_map( function ($format, $url) { return sprintf('%s', $url, $format);