From: Simon McVittie Date: Mon, 27 Jul 2009 10:58:36 +0000 (+0100) Subject: getsource: remove temporary variable X-Git-Tag: 3.15~18^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=70b1c2aabd0d591cbdb30765c5a7e000e993f343;p=ikiwiki.git getsource: remove temporary variable --- 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; }