From 8d9e6ae7b19a9971ec0d95cc904de6c07e6647dc Mon Sep 17 00:00:00 2001
From: Anika Henke <anika@selfthinker.org>
Date: Fri, 2 Jul 2010 23:56:08 +0100
Subject: [PATCH] improved diff permalink

---
 inc/html.php         | 7 ++++---
 inc/lang/en/lang.php | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/inc/html.php b/inc/html.php
index 1b9a8d680..b475e2b7a 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -993,9 +993,10 @@ function html_diff($text='',$intro=true){
     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>');
+        $diffurl = wl($ID, array('do'=>'diff', 'rev2[0]'=>$l_rev, 'rev2[1]'=>$r_rev));
+        ptln('<p class="difflink">');
+        ptln('  <a class="wikilink1" href="'.$diffurl.'">'.$lang['difflink'].'</a>');
+        ptln('</p>');
     }
     ?>
     <table class="diff">
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index c9d00eba2..5414f7a88 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -163,7 +163,7 @@ $lang['current']    = 'current';
 $lang['yours']      = 'Your Version';
 $lang['diff']       = 'Show differences to current revisions';
 $lang['diff2']      = 'Show differences between selected revisions';
-$lang['difflink']   = 'Link to this diff output';
+$lang['difflink']   = 'Link to this comparison view';
 $lang['line']       = 'Line';
 $lang['breadcrumb'] = 'Trace';
 $lang['youarehere'] = 'You are here';
-- 
GitLab