]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki
recentchanges
[git.ikiwiki.info.git] / ikiwiki
diff --git a/ikiwiki b/ikiwiki
index a9f3b8c51ea5a349cd1ca6c3b61d31f1550a0d7e..1b282abf938f63f0fa604e245ad877018e7740f2 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -373,8 +373,6 @@ sub rcs_recentchanges ($) {
        eval q{use Date::Parse};
        eval q{use Time::Duration};
        
-       my %sourcepages=reverse %pagesources;
-       
        if (-d "$srcdir/.svn") {
                my $info=`LANG=C svn info $srcdir`;
                my ($svn_url)=$info=~/^URL: (.*)$/m;
@@ -397,8 +395,8 @@ sub rcs_recentchanges ($) {
                                $user=$2;
                                $when=concise(ago(time - str2time($3)));
                        }
-                       elsif ($state eq 'header' && /^\s+[A-Z]\s+\Q$svn_base\E(.+)$/) {
-                               push @pages, $1;
+                       elsif ($state eq 'header' && /^\s+[A-Z]\s+\Q$svn_base\E\/(.+)$/) {
+                               push @pages, pagename($1);
                        }
                        elsif ($state eq 'header' && /^$/) {
                                $state='body';
@@ -646,9 +644,7 @@ sub cgi () {
                my $list="<ul>\n";
                foreach my $change (rcs_recentchanges(100)) {
                        $list.="<li>";
-                       foreach my $page (@{$change->{pages}}) {
-                               $list.=$page." ";
-                       }
+                       $list.=join(", ", map { htmllink("index", $_) } @{$change->{pages}});
                        $list.="<br>\n";
                        $list.="changed ".$change->{when}." by ".
                               htmllink("index", $change->{user}).