]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/goto.pm
filecheck: Fix bug that prevented the pagespecs from matching when not called by...
[ikiwiki.git] / IkiWiki / Plugin / goto.pm
index 2e2dc04a111a164745fb628785b509d40e024e6c..03bd682b3fed5114d6d43a52d603feb6c3e11348 100644 (file)
@@ -14,6 +14,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 0,
+                       section => "web",
                }
 }
 
@@ -51,7 +52,8 @@ sub cgi_goto ($;$) {
 
        if (! length $link) {
                IkiWiki::cgi_custom_failure(
-                       $q->header(-status => "404 Not Found"),
+                       $q,
+                       "404 Not Found",
                        IkiWiki::misctemplate(gettext("missing page"),
                                "<p>".
                                sprintf(gettext("The page %s does not exist."),