]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
getsource: remove temporary variable
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Mon, 27 Jul 2009 10:58:36 +0000 (11:58 +0100)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Mon, 27 Jul 2009 10:58:36 +0000 (11:58 +0100)
IkiWiki/Plugin/getsource.pm

index db5614ec18081e1d4f877183acb370e855ee6aed..e8aea2c3901ba36c22f2991f0e4a4c2795a9a981 100644 (file)
@@ -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;
 }