aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/svn.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/svn.pm')
-rw-r--r--IkiWiki/Plugin/svn.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/svn.pm b/IkiWiki/Plugin/svn.pm
index 05312a1ed..51683704c 100644
--- a/IkiWiki/Plugin/svn.pm
+++ b/IkiWiki/Plugin/svn.pm
@@ -22,9 +22,6 @@ sub import { #{{{
} #}}}
sub checkconfig () { #{{{
- if (! defined $config{diffurl}) {
- $config{diffurl}="";
- }
if (! defined $config{svnpath}) {
$config{svnpath}="trunk";
}
@@ -318,7 +315,7 @@ sub rcs_recentchanges ($) { #{{{
$file=$1;
}
- my $diffurl=$config{diffurl};
+ my $diffurl=defined $config{diffurl} ? $config{diffurl} : "";
$diffurl=~s/\[\[file\]\]/$file/g;
$diffurl=~s/\[\[r1\]\]/$rev - 1/eg;
$diffurl=~s/\[\[r2\]\]/$rev/g;