my $dir=dirname($file);
if (! -d $dir) {
- print STDERR ">>$dir<<\n";
my $d="";
foreach my $s (split(m!/+!, $dir)) {
$d.="$s/";
}
}
- # TODO sort by page name
- return @links;
+ return sort { $a->{page} cmp $b->{page} } @links;
} #}}}
sub parentlinks ($) { #{{{
my $pagebody=shift;
my $template=HTML::Template->new(
- filename => "$templatedir/misc.tmpl");
+ filename => "$templatedir/misc.tmpl"
+ );
$template->param(
title => $title,
indexlink => indexlink(),
my $q=shift;
my $template=HTML::Template->new(
- filename => "$templatedir/recentchanges.tmpl");
+ filename => "$templatedir/recentchanges.tmpl"
+ );
$template->param(
title => "RecentChanges",
indexlink => indexlink(),