avoid calling getctime on internal pages
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 24 Feb 2008 23:02:34 +0000 (18:02 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 24 Feb 2008 23:02:34 +0000 (18:02 -0500)
internal pages won't be in revision control so this avoids some ugly noise

IkiWiki/Render.pm

index 782818cdf49a92917bd4e6762319746841da6d5f..302b1839519de4d23ad5d64432e9f3088e458060 100644 (file)
@@ -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));
                        }