summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorGina Haeussge <gina@foosel.net>2010-06-27 18:18:10 +0200
committerGina Haeussge <gina@foosel.net>2010-06-27 18:18:10 +0200
commit226bf2dc02909d49bb6afbd7b5018572aeba6050 (patch)
treef89224a6f9a321a7c7e544fa499d74138a4807ae /inc/html.php
parent339bd727f11b2879121b67a65741bf1350e195e4 (diff)
downloadrpg-226bf2dc02909d49bb6afbd7b5018572aeba6050.tar.gz
rpg-226bf2dc02909d49bb6afbd7b5018572aeba6050.tar.bz2
FS#1821: Added a permalink to the diff output
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php
index 3398e8fb9..1b9a8d680 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -991,6 +991,12 @@ function html_diff($text='',$intro=true){
$tdf = new TableDiffFormatter();
if($intro) print p_locale_xhtml('diff');
+
+ if (!$text) {
+ ptln('<div class="level1"><p>');
+ ptln(' <a class="wikilink1" href="'.wl($ID, 'do=diff&rev2[]='.$l_rev.'&rev2[]='.$r_rev).'">'.$lang['difflink'].'</a>');
+ ptln('</p></div>');
+ }
?>
<table class="diff">
<tr>