} #}}}
sub checkconfig () { #{{{
+ IkiWiki::lockwiki();
+ loadstate();
if ($IkiWiki::config{aggregate}) {
- IkiWiki::lockwiki();
- loadstate();
IkiWiki::loadindex();
aggregate();
savestate();
- IkiWiki::unlockwiki();
}
+ IkiWiki::unlockwiki();
} #}}}
sub filter (@) { #{{{
$page=$feed->{dir}."/item";
}
my $c="";
- while (exists $IkiWiki::pagecase{lc $page} ||
+ while (exists $IkiWiki::pagecase{lc $page.$c} ||
-e pagefile($page.$c)) {
$c++
}