]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/getsource.pm
inline: Avoid showing edit links if page editing is disabled. (Sjoerd)
[git.ikiwiki.info.git] / IkiWiki / Plugin / getsource.pm
index ae9ea3cc7af4ffe27b46d65528d380420ac5b368..d1555430e82d83bbe61064d04b335cdf48a85317 100644 (file)
@@ -58,7 +58,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."),