]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
Bugs++
[ikiwiki.git] / IkiWiki.pm
index a254177f2d7a136a42c2c407111c7ef8576d6ab7..cd4ac815dbba6beec9a4debc9d0410de01a342e4 100644 (file)
@@ -1508,7 +1508,7 @@ sub preprocess ($$$;$$) {
                                        push @params, $val, '';
                                }
                        }
-                       if ($preprocessing{$page}++ > 3) {
+                       if ($preprocessing{$page}++ > 8) {
                                # Avoid loops of preprocessed pages preprocessing
                                # other pages that preprocess them, etc.
                                return "[[!$command <span class=\"error\">".
@@ -1819,7 +1819,8 @@ sub loadindex () {
                        open ($in, "<", "$config{wikistatedir}/indexdb") || return;
                }
                else {
-                       $config{gettime}=1; # first build
+                       # gettime on first build
+                       $config{gettime}=1 unless defined $config{gettime};
                        return;
                }
        }