diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-07-27 11:58:36 +0100 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-07-27 11:58:36 +0100 |
commit | 70b1c2aabd0d591cbdb30765c5a7e000e993f343 (patch) | |
tree | 5442a01e418e6e96af7fd9c1deaa748f66f5c11d | |
parent | 2ef53b128d9f40fa998215b2809e676207050902 (diff) |
getsource: remove temporary variable
-rw-r--r-- | IkiWiki/Plugin/getsource.pm | 6 |
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; } |