From adcc349d89ada08c106f39ecb9338e3cde9668a8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 14 Feb 2009 03:04:11 -0500 Subject: check for empty srcdir This happens when using -dumpsetup --- IkiWiki/Plugin/shortcut.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3