aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-14 03:04:11 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-14 03:04:11 -0500
commitadcc349d89ada08c106f39ecb9338e3cde9668a8 (patch)
treefed5c50cd4a380aadd3eedf5424b151702afc435
parent684cd73a79405ee58e115e603213c39a33d710cf (diff)
downloadikiwiki-adcc349d89ada08c106f39ecb9338e3cde9668a8.tar
ikiwiki-adcc349d89ada08c106f39ecb9338e3cde9668a8.tar.gz
check for empty srcdir
This happens when using -dumpsetup
-rw-r--r--IkiWiki/Plugin/shortcut.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/shortcut.pm b/IkiWiki/Plugin/shortcut.pm
index 5693ee782..1840a5722 100644
--- a/IkiWiki/Plugin/shortcut.pm
+++ b/IkiWiki/Plugin/shortcut.pm
@@ -20,7 +20,7 @@ sub getsetup () {
}
sub checkconfig () {
- if (defined $config{srcdir}) {
+ if (defined $config{srcdir} && length $config{srcdir}) {
# Preprocess the shortcuts page to get all the available shortcuts
# defined before other pages are rendered.
my $srcfile=srcfile("shortcuts.".$config{default_pageext}, 1);