aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-07-27 11:58:36 +0100
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-07-27 11:58:36 +0100
commit70b1c2aabd0d591cbdb30765c5a7e000e993f343 (patch)
tree5442a01e418e6e96af7fd9c1deaa748f66f5c11d /IkiWiki
parent2ef53b128d9f40fa998215b2809e676207050902 (diff)
downloadikiwiki-70b1c2aabd0d591cbdb30765c5a7e000e993f343.tar
ikiwiki-70b1c2aabd0d591cbdb30765c5a7e000e993f343.tar.gz
getsource: remove temporary variable
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/getsource.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/getsource.pm b/IkiWiki/Plugin/getsource.pm
index db5614ec1..e8aea2c39 100644
--- a/IkiWiki/Plugin/getsource.pm
+++ b/IkiWiki/Plugin/getsource.pm
@@ -77,18 +77,14 @@ sub cgi_getsource ($) {
exit;
}
- my $data = readfile(srcfile($pagesources{$page}));
-
if (! $config{getsource_mimetype}) {
$config{getsource_mimetype} = "text/plain; charset=utf-8";
}
print "Content-Type: $config{getsource_mimetype}\r\n";
-
print ("\r\n");
+ print readfile(srcfile($pagesources{$page}));
- print $data;
-
exit 0;
}