]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/tla.pm
support arrays
[ikiwiki.git] / IkiWiki / Plugin / tla.pm
index b95c1a522c87460f66d5a18af5a34889edcb6011..1c2763359c35766b8cd42dfb323fbb13ee6e0e11 100644 (file)
@@ -21,9 +21,6 @@ sub import { #{{{
 } #}}}
 
 sub checkconfig () { #{{{
-       if (! defined $config{diffurl}) {
-               $config{diffurl}="";
-       }
        if (defined $config{tla_wrapper} && length $config{tla_wrapper}) {
                push @{$config{wrappers}}, {
                        wrapper => $config{tla_wrapper},
@@ -37,7 +34,7 @@ sub getsetup () { #{{{
                tla_wrapper => {
                        type => "string",
                        #example => "", # TODO example
-                       description => "tla post-commit executable to generate",
+                       description => "tla post-commit hook to generate",
                        safe => 0, # file
                        rebuild => 0,
                },
@@ -215,7 +212,7 @@ sub rcs_recentchanges ($) {
                my @pages;
 
                foreach my $file (@paths) {
-                       my $diffurl=$config{diffurl};
+                       my $diffurl=defined $config{diffurl} ? $config{diffurl} : "";
                        $diffurl=~s/\[\[file\]\]/$file/g;
                        $diffurl=~s/\[\[rev\]\]/$change/g;
                        push @pages, {