From: Joey Hess Date: Thu, 30 Oct 2008 18:50:33 +0000 (-0400) Subject: set ctime in --render mode if not known X-Git-Tag: 2.68~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae0a9d50bebb061e3b6ec4cc08677b6e6ed69ac9;p=ikiwiki.git set ctime in --render mode if not known Avoids some uninitialised value warnings. --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 7f9c4cb9c..389063d46 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -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;