git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: replace global variables by $Page object
[minimedit.git]
/
widget
/
sitemap.php
diff --git
a/widget/sitemap.php
b/widget/sitemap.php
index 73b4cdc475d273356fa264742be3e8e77f64dd9c..8d7ba76db614b6748795fcecec8804c555c5832c 100644
(file)
--- a/
widget/sitemap.php
+++ b/
widget/sitemap.php
@@
-1,8
+1,9
@@
<?php
# list article details
<?php
# list article details
-$search = new PageSearch(ltrim($
Args
, '/') ?: '.');
+$search = new PageSearch(ltrim($
Page->path
, '/') ?: '.');
print '<ul class="replies">'."\n";
print '<ul class="replies">'."\n";
-foreach ($search->files() as $Args => $sorted) {
+foreach ($search->files() as $ref => $sorted) {
+ $Page->path = $ref;
print '<li>';
include 'linkref.php';
print "</li>\n";
print '<li>';
include 'linkref.php';
print "</li>\n";