]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/recentchanges.pm
better approach for cgi upload disabling
[ikiwiki.git] / IkiWiki / Plugin / recentchanges.pm
index c8d222edbadac2d857f64cc6fefc64d77f8391e8..f4f9ca348d84a569e866a3cfd33837a24d664a0c 100644 (file)
@@ -40,14 +40,8 @@ sub pagetemplate (@) { #{{{
        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 $page) {
-               eval q{use Carp};
-               Carp::cluck("undefined page; please report this to Joey");
-       }
-
-       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);