]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
check for empty srcdir
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 14 Feb 2009 08:04:11 +0000 (03:04 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 14 Feb 2009 08:04:11 +0000 (03:04 -0500)
This happens when using -dumpsetup

IkiWiki/Plugin/shortcut.pm

index 5693ee7822f16bbca5bf45d93f7761450f8cd913..1840a5722a6300d7ce30d14cd4534ef2bc16a48d 100644 (file)
@@ -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);