if (exists $params{pagenames}) {
push @{$pagestate{$params{page}}{trail}{contents}},
- [pagenames => (split ' ', $params{pagenames})];
+ [pagenames => (map { linkpage $_ } split ' ', $params{pagenames})];
}
return "";
}
if (defined $pagestate{$trail}{trail}{sort}) {
- # re-sort
- @$members = pagespec_match_list($trail, 'internal(*)',
- list => $members,
- sort => $pagestate{$trail}{trail}{sort});
+ @$members = IkiWiki::sort_pages(
+ $pagestate{$trail}{trail}{sort},
+ $members);
}
if (IkiWiki::yesno $pagestate{$trail}{trail}{reverse}) {