]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/shortcut.pm
check for empty srcdir
[ikiwiki.git] / IkiWiki / Plugin / shortcut.pm
index 5693ee7822f16bbca5bf45d93f7761450f8cd913..1840a5722a6300d7ce30d14cd4534ef2bc16a48d 100644 (file)
@@ -20,7 +20,7 @@ sub getsetup () {
 }
 
 sub checkconfig () {
 }
 
 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);
                # Preprocess the shortcuts page to get all the available shortcuts
                # defined before other pages are rendered.
                my $srcfile=srcfile("shortcuts.".$config{default_pageext}, 1);