aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2014-06-24 16:02:26 +0100
committerChristopher Baines <mail@cbaines.net>2015-02-28 12:41:30 +0000
commit2b4ab4548c80e608d08602ca4c60cb41e71ff3b2 (patch)
tree62d9cf8fcf8ddc5ab97c5bd8dd77bf8b07598064 /IkiWiki/Render.pm
parentd41d958ec2ebd504c82452594110bc11698f71e1 (diff)
downloadikiwiki-git-annex-album.tar
ikiwiki-git-annex-album.tar.gz
Make ignoring symlinks configurablegit-annex-album
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index fa2940b01..0e6491e32 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -317,7 +317,8 @@ sub find_src_files (;$$$) {
my $helper=sub {
my $file=decode_utf8($_);
- return if -l $file || -d _;
+ return if -d $file;
+ return if !$config{allow_symlinks} and -l $file;
$file=~s/^\.\///;
return if ! length $file;
$page = pagename($file);