aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-02-24 18:02:34 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-02-24 18:02:34 -0500
commitf4773f6a833f12a37c319ebeafe920b4bb7169ff (patch)
treef0e6d14231d87d3fc450c04923b51695833e263e
parent154532b2786df30e5341d300ad6d131843aa446b (diff)
downloadikiwiki-f4773f6a833f12a37c319ebeafe920b4bb7169ff.tar
ikiwiki-f4773f6a833f12a37c319ebeafe920b4bb7169ff.tar.gz
avoid calling getctime on internal pages
internal pages won't be in revision control so this avoids some ugly noise
-rw-r--r--IkiWiki/Render.pm18
1 files changed, 9 insertions, 9 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 782818cdf..302b18395 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -330,17 +330,17 @@ sub refresh () { #{{{
}
else {
push @add, $file;
- }
- $pagecase{lc $page}=$page;
- if ($config{getctime} && -e "$config{srcdir}/$file") {
- eval {
- my $time=rcs_getctime("$config{srcdir}/$file");
- $pagectime{$page}=$time;
- };
- if ($@) {
- print STDERR $@;
+ if ($config{getctime} && -e "$config{srcdir}/$file") {
+ eval {
+ my $time=rcs_getctime("$config{srcdir}/$file");
+ $pagectime{$page}=$time;
+ };
+ if ($@) {
+ print STDERR $@;
+ }
}
}
+ $pagecase{lc $page}=$page;
if (! exists $pagectime{$page}) {
$pagectime{$page}=mtime(srcfile($file));
}