]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/recentchanges.pm
The search interface now allows searching for a page by title ("title:foo"), as well...
[ikiwiki.git] / IkiWiki / Plugin / recentchanges.pm
index e591df79f66b78e1d63e325e032c4e861f4502db..3020b6a6a3d1ecd59a12fe3e89cdcc620d5456bc 100644 (file)
@@ -28,7 +28,7 @@ sub refresh ($) { #{{{
        
        # delete old and excess changes
        foreach my $page (keys %pagesources) {
-               if ($page =~ /\._change$/ && ! $seen{$page}) {
+               if ($pagesources{$page} =~ /\._change$/ && ! $seen{$page}) {
                        unlink($config{srcdir}.'/'.$pagesources{$page});
                }
        }
@@ -39,6 +39,14 @@ sub pagetemplate (@) { #{{{
        my %params=@_;
        my $template=$params{template};
        my $page=$params{page};
+
+       # XXX this is here because I've been seeing a strange uninitialized
+       # value in this sub.
+       if (! defined $config{recentchangespage}) {
+               eval q{use Carp};
+               Carp::cluck("undefined recentchangespage; please report this to Joey");
+       }
+
        if ($config{rcs} && $page ne $config{recentchangespage} &&
            $template->query(name => "recentchangesurl")) {
                $template->param(recentchangesurl => urlto($config{recentchangespage}, $page));
@@ -161,10 +169,4 @@ sub store ($$$) { #{{{
        return $page;
 } #}}}
 
-sub updatechanges ($$) { #{{{
-       my $subdir=shift;
-       my @changes=@{shift()};
-       
-} #}}}
-
 1