if ($pagespec =~ /$config{wiki_file_regexp}/ &&
$pagespec !~ /[\s*?()!]/) {
# a simple dependency, which can be matched by string eq
- $depends_exact{$page}{$pagespec} = 1;
+ $depends_exact{$page}{lc $pagespec} = 1;
return 1;
}
if (%rendered || @del || @internal) {
my @changed=(keys %rendered, @del);
- my %changedpages = map { pagename($_) => 1 } @changed;
+ my %lcchanged = map { lc(pagename($_)) => 1 } @changed;
# rebuild dependant pages
F: foreach my $f (@$files) {
if (exists $depends_exact{$p}) {
foreach my $d (keys %{$depends_exact{$p}}) {
- if (exists $changedpages{$d}) {
+ if (exists $lcchanged{$d}) {
debug(sprintf(gettext("building %s, which depends on %s"), $f, $d));
render($f);
$rendered{$f}=1;