set ctime in --render mode if not known
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 30 Oct 2008 18:50:33 +0000 (14:50 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 30 Oct 2008 18:50:33 +0000 (14:50 -0400)
Avoids some uninitialised value warnings.

IkiWiki/Render.pm

index 7f9c4cb9c9f6760a8d3c91c7ff6c623cff624eed..389063d4623f8f381717384691d46803825d8dec 100644 (file)
@@ -528,6 +528,7 @@ sub commandline_render () { #{{{
        $content=linkify($page, $page, $content);
        $content=htmlize($page, $page, $type, $content);
        $pagemtime{$page}=(stat($srcfile))[9];
+       $pagectime{$page}=$pagemtime{$page} if ! exists $pagectime{$page};
 
        print genpage($page, $content);
        exit 0;