]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/goto.pm
lockedit: Detect if no authentication plugins are enabled, and die with an error...
[git.ikiwiki.info.git] / IkiWiki / Plugin / goto.pm
index 2e2dc04a111a164745fb628785b509d40e024e6c..439552f62f9d5b3fe97c33d8397a559118e25b71 100644 (file)
@@ -51,7 +51,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."),