clear hashes in loadindex, so that it can safely be called more than once
even if pages have been deleted in betweenmaster
parent
278b16c79a
commit
3945473f8a
|
@ -826,6 +826,11 @@ sub enable_commit_hook () { #{{{
|
|||
} #}}}
|
||||
|
||||
sub loadindex () { #{{{
|
||||
%oldrenderedfiles=%pagectime=();
|
||||
if (! $config{rebuild}) {
|
||||
%pagesources=%pagemtime=%oldlinks=%links=%depends=
|
||||
%destsources=%renderedfiles=%pagecase=();
|
||||
}
|
||||
open (my $in, "<", "$config{wikistatedir}/index") || return;
|
||||
while (<$in>) {
|
||||
$_=possibly_foolish_untaint($_);
|
||||
|
|
Loading…
Reference in New Issue