diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-10-30 14:50:33 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-10-30 14:50:33 -0400 |
commit | ae0a9d50bebb061e3b6ec4cc08677b6e6ed69ac9 (patch) | |
tree | 8bc69b14085ea4c3002e6ef7571762c127810c0f | |
parent | 7ea0f92aadb40563a84c58841c316e827af1d570 (diff) | |
download | ikiwiki-ae0a9d50bebb061e3b6ec4cc08677b6e6ed69ac9.tar ikiwiki-ae0a9d50bebb061e3b6ec4cc08677b6e6ed69ac9.tar.gz |
set ctime in --render mode if not known
Avoids some uninitialised value warnings.
-rw-r--r-- | IkiWiki/Render.pm | 1 |
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; |