]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
Add screenshots
[ikiwiki.git] / IkiWiki.pm
index 2815a5c4cff663cbf6ab71b0e5ec970e1db7305c..207bf3079a2083ccf047837af6601168d938ada8 100644 (file)
@@ -1043,7 +1043,9 @@ sub preprocess ($$$;$$) { #{{{
                my $prefix=shift;
                my $command=shift;
                my $params=shift;
-               if (length $escape) {
+               $params="" if ! defined $params;
+
+               f (length $escape) {
                        return "[[$prefix$command $params]]";
                }
                elsif (exists $hooks{preprocess}{$command}) {