put back recentchangesurl
[ikiwiki.git] / IkiWiki / Plugin / recentchanges.pm
index 04219b72146a18c74cb5a637ddda2675deb91430..e546e4702b43bda681e74996a51bcc6e6e3c0499 100644 (file)
@@ -22,7 +22,6 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 1,
-                       section => "core",
                },
                recentchangespage => {
                        type => "string",
@@ -61,15 +60,15 @@ sub refresh ($) {
        }
 }
 
-# Enable the recentchanges link on wiki pages.
+# Enable the recentchanges link.
 sub pagetemplate (@) {
        my %params=@_;
        my $template=$params{template};
        my $page=$params{page};
 
        if (defined $config{recentchangespage} && $config{rcs} &&
-           $page ne $config{recentchangespage} &&
-           $template->query(name => "recentchangesurl")) {
+           $template->query(name => "recentchangesurl") &&
+           $page ne $config{recentchangespage}) {
                $template->param(recentchangesurl => urlto($config{recentchangespage}, $page));
                $template->param(have_actions => 1);
        }