diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-27 00:54:15 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-27 00:54:15 -0400 |
commit | e1f7146041ab7dbbaf045a5da959d9086fbaae50 (patch) | |
tree | 3b7d8930244306381792d126e62809e80ffc42d5 /IkiWiki/Plugin/tla.pm | |
parent | bc3363beb767a82e3bdde2d038e7b678bd35f193 (diff) |
avoid clobbering example diffurl
Diffstat (limited to 'IkiWiki/Plugin/tla.pm')
-rw-r--r-- | IkiWiki/Plugin/tla.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/tla.pm b/IkiWiki/Plugin/tla.pm index b95c1a522..6faaecccc 100644 --- a/IkiWiki/Plugin/tla.pm +++ b/IkiWiki/Plugin/tla.pm @@ -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}, @@ -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, { |