]> sipb.mit.edu Git - ikiwiki.git/commitdiff
avoid temp var
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 23:07:20 +0000 (18:07 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 23:07:20 +0000 (18:07 -0500)
IkiWiki/Render.pm

index a42cdc4224ddee61f6d07685788d832bdf0ab028..be5af84ba5a51d65ef9f98a3d64cd7439f5dc006 100644 (file)
@@ -378,8 +378,7 @@ sub refresh () { #{{{
                        if (isinternal($page)) {
                                push @internal, $file;
                                # Preprocess internal page in scan-only mode.
-                               my $content=readfile(srcfile($file));
-                               preprocess($page, $page, $content, 1);
+                               preprocess($page, $page, readfile(srcfile($file)), 1);
                        }
                        else {
                                push @needsbuild, $file;