aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-21 13:50:49 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-21 13:50:49 -0400
commit587e0c3d21dfbde052e0fd71a7ed0e33e09e757f (patch)
treeb47f72305880c28db47bc268afd4ffbc6bdf953e /IkiWiki/Render.pm
parent39f8071aacf9913304d907694002e2e5294aa987 (diff)
downloadikiwiki-587e0c3d21dfbde052e0fd71a7ed0e33e09e757f.tar
ikiwiki-587e0c3d21dfbde052e0fd71a7ed0e33e09e757f.tar.gz
Fix a bug introduced in the last version that caused ikiwiki to skip all files if a sourcedir of "./" was specified.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 0fe20c64f..0889fed62 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -287,13 +287,13 @@ sub find_src_files () {
wanted => sub {
my $file=decode_utf8($_);
$file=~s/^\Q$config{srcdir}\E\/?//;
+ return if -l $_ || -d _ || ! length $file;
my $page = pagename($file);
if (! exists $pagesources{$page} &&
file_pruned($file)) {
$File::Find::prune=1;
return;
}
- return if -l $_ || -d _ || ! length $file;
my ($f) = $file =~ /$config{wiki_file_regexp}/; # untaint
if (! defined $f) {
@@ -314,13 +314,13 @@ sub find_src_files () {
wanted => sub {
my $file=decode_utf8($_);
$file=~s/^\Q$dir\E\/?//;
+ return if -l $_ || -d _ || ! length $file;
my $page=pagename($file);
if (! exists $pagesources{$page} &&
file_pruned($file)) {
$File::Find::prune=1;
return;
}
- return if -l $_ || -d _ || ! length $file;
my ($f) = $file =~ /$config{wiki_file_regexp}/; # untaint
if (! defined $f) {