aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-21 15:54:18 -0400
committerJoey Hess <joey@kitenet.net>2010-04-21 15:54:18 -0400
commit2a0e3787a056b160843eca263c82d591c7161988 (patch)
tree9b4e4a0dc57e2555726b12f4ac48a7ae6b0f6b3d
parent9951060f624b69053cff2bba88dab6e0ed8eec10 (diff)
downloadikiwiki-2a0e3787a056b160843eca263c82d591c7161988.tar
ikiwiki-2a0e3787a056b160843eca263c82d591c7161988.tar.gz
bugfixes
-rw-r--r--IkiWiki/Render.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 14f6f9d5f..09c9121f3 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -681,18 +681,18 @@ sub gen_autofile ($$$) {
my $autofile=shift;
my $pages=shift;
my $del=shift;
-
+
if (srcfile($autofile, 1) || file_pruned($autofile)) {
return;
}
- my $file="$config{srcdir}/$autofile" =~ /$config{wiki_file_regexp}/; # untaint
+ my ($file)="$config{srcdir}/$autofile" =~ /$config{wiki_file_regexp}/; # untaint
if (! defined $file || -l $file || -d _ || -e _) {
return;
}
if ((!defined $file) ||
- (exists $wikistate{$autofiles{$autofile}{plugin}}{autofile_deleted})) {
+ (exists $wikistate{$autofiles{$autofile}{plugin}}{deleted_autofile}{$autofile})) {
return;
}
@@ -701,8 +701,8 @@ sub gen_autofile ($$$) {
return;
}
- if (grep { $_ eq $file } @$del) {
- $wikistate{$autofiles{$autofile}{plugin}}{autofile_deleted}=1;
+ if (grep { $_ eq $autofile } @$del) {
+ $wikistate{$autofiles{$autofile}{plugin}}{deleted_autofile}{$autofile}=1;
return;
}