diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-02-24 18:02:34 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-02-24 18:02:34 -0500 |
commit | f4773f6a833f12a37c319ebeafe920b4bb7169ff (patch) | |
tree | f0e6d14231d87d3fc450c04923b51695833e263e | |
parent | 154532b2786df30e5341d300ad6d131843aa446b (diff) | |
download | ikiwiki-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.pm | 18 |
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)); } |