]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/recentchanges.pm
better approach for cgi upload disabling
[ikiwiki.git] / IkiWiki / Plugin / recentchanges.pm
index 8135f9adb3d8071aedb30960952c803a3c95c310..f4f9ca348d84a569e866a3cfd33837a24d664a0c 100644 (file)
@@ -39,7 +39,9 @@ sub pagetemplate (@) { #{{{
        my %params=@_;
        my $template=$params{template};
        my $page=$params{page};
-       if ($config{rcs} && $page ne $config{recentchangespage} &&
+
+       if (defined $config{recentchangespage} && $config{rcs} &&
+           $page ne $config{recentchangespage} &&
            $template->query(name => "recentchangesurl")) {
                $template->param(recentchangesurl => urlto($config{recentchangespage}, $page));
                $template->param(have_actions => 1);