$template->param(historyurl => $u);
$actions++;
}
- if ($config{discussion}) {
+ if ($config{discussion} && ($config{cgi} || exists $links{"$page/discussion"})) {
$template->param(discussionlink => htmllink($page, $page, "Discussion", 1, 1));
$actions++;
}
push @links, titlepage($2);
}
if ($config{discussion}) {
- # Discussion links are a special case since they're not in the
- # text of the page, but on its template.
+ # Discussion links are a special case since they're
+ # not in the text of the page, but on its template.
push @links, "$page/discussion";
}
$links{$page}=\@links;
no_chdir => 1,
wanted => sub {
$_=decode_utf8($_);
- if (/$config{wiki_file_prune_regexp}/) {
+ if (file_pruned($_, $config{srcdir})) {
$File::Find::prune=1;
}
elsif (! -d $_ && ! -l $_) {
no_chdir => 1,
wanted => sub {
$_=decode_utf8($_);
- if (/$config{wiki_file_prune_regexp}/) {
+ if (file_pruned($_, $config{underlaydir})) {
$File::Find::prune=1;
}
elsif (! -d $_ && ! -l $_) {