]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/getsource.pm
(no commit message)
[git.ikiwiki.info.git] / IkiWiki / Plugin / getsource.pm
index ae9ea3cc7af4ffe27b46d65528d380420ac5b368..b362de7264175d9468c4207dcacf9153ade356a5 100644 (file)
@@ -17,6 +17,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 1,
                plugin => {
                        safe => 1,
                        rebuild => 1,
+                       section => "web",
                },
                getsource_mimetype => {
                        type => "string",
                },
                getsource_mimetype => {
                        type => "string",
@@ -58,7 +59,8 @@ sub cgi_getsource ($) {
 
        if (! exists $pagesources{$page}) {
                IkiWiki::cgi_custom_failure(
 
        if (! exists $pagesources{$page}) {
                IkiWiki::cgi_custom_failure(
-                       $cgi->header(-status => "404 Not Found"),
+                       $cgi,
+                       "404 Not Found",
                        IkiWiki::misctemplate(gettext("missing page"),
                                "<p>".
                                sprintf(gettext("The page %s does not exist."),
                        IkiWiki::misctemplate(gettext("missing page"),
                                "<p>".
                                sprintf(gettext("The page %s does not exist."),