summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-30 14:50:33 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-30 14:50:33 -0400
commitae0a9d50bebb061e3b6ec4cc08677b6e6ed69ac9 (patch)
tree8bc69b14085ea4c3002e6ef7571762c127810c0f
parent7ea0f92aadb40563a84c58841c316e827af1d570 (diff)
set ctime in --render mode if not known
Avoids some uninitialised value warnings.
-rw-r--r--IkiWiki/Render.pm1
1 files changed, 1 insertions, 0 deletions
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;