diff options
author | David Riebenbauer <davrieb@liegesta.at> | 2010-02-03 02:35:19 +0100 |
---|---|---|
committer | David Riebenbauer <davrieb@liegesta.at> | 2010-02-03 07:34:04 +0100 |
commit | bd1e29b8c4d2c2e0329789d1baf0a879617aeee4 (patch) | |
tree | c1d1709733c64849728643eddd441eac60ac23b5 /IkiWiki.pm | |
parent | 9330b91703ba245ceb9c36e0682b8cfc0d225eaa (diff) | |
download | ikiwiki-bd1e29b8c4d2c2e0329789d1baf0a879617aeee4.tar ikiwiki-bd1e29b8c4d2c2e0329789d1baf0a879617aeee4.tar.gz |
Revert "Make srcfile() return undef, if the file isn't there."
This reverts commit 1bde208ec9b915db0187030c33450b5accb4892c.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 7d7f430b3..90e623330 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -744,10 +744,7 @@ sub srcfile_stat { } sub srcfile ($;$) { - if (my @stat=srcfile_stat(@_)) { - return $stat[0]; - } - return undef + return (srcfile_stat(@_))[0]; } sub add_underlay ($) { |