summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-02-15 15:48:06 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-02-15 15:48:06 +0100
commit04032c735ec3e60ef6a82418ad3b35560e41c194 (patch)
tree58cfedd24eb263c115ef2441c96035e50e9d81fc /inc
parent0ba750c06b51626ccace39f0f6be7062eebb0a40 (diff)
downloadrpg-04032c735ec3e60ef6a82418ad3b35560e41c194.tar.gz
rpg-04032c735ec3e60ef6a82418ad3b35560e41c194.tar.bz2
when creating a diff link always link to exact rev FS#2835
Diffstat (limited to 'inc')
-rw-r--r--inc/html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 928991ae2..0434f3b45 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1189,7 +1189,7 @@ function html_diff($text='',$intro=true,$type=null){
$diffurl = wl($ID, array(
'do' => 'diff',
'rev2[0]' => $l_rev,
- 'rev2[1]' => $r_rev,
+ 'rev2[1]' => $r_rev ? $r_rev : $INFO['lastmod'], // link to exactly this view FS#2835
'difftype' => $type,
));
ptln('<p><a class="wikilink1" href="'.$diffurl.'">'.$lang['difflink'].'</a></p>');