summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-26 14:54:47 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-26 14:54:47 +0000
commit2e95062df8326a46d91112214a0a80886692b1a4 (patch)
treec779071bdbce9c724b1bb5d05ef08cf7a691038e
parent282893be819eab14f3a2078f1741ec9c9ed363b1 (diff)
fix call to getctime
-rw-r--r--IkiWiki/Render.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 5bc7f6ebb..51e7a194f 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -347,8 +347,12 @@ sub refresh () { #{{{
push @add, $file;
$links{$page}=[];
$pagesources{$page}=$file;
- $pagectime{$page}=mtime(srcfile($file))
- unless exists $pagectime{$page};
+ if ($config{getctime} && -e "$config{srcdir}/$file") {
+ $pagectime{$page}=rcs_getctime("$config{srcdir}/$file");
+ }
+ elsif (! exists $pagectime{$page}) {
+ $pagectime{$page}=mtime(srcfile($file));
+ }
}
}
my @del;