summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2010-07-02 23:56:08 +0100
committerAnika Henke <anika@selfthinker.org>2010-07-02 23:56:08 +0100
commit8d9e6ae7b19a9971ec0d95cc904de6c07e6647dc (patch)
tree30b775e9170189432aed909845317e14147fbdb2 /inc/html.php
parent12095b9a31ef3b7bf0d99346efd02ad6eb75668a (diff)
downloadrpg-8d9e6ae7b19a9971ec0d95cc904de6c07e6647dc.tar.gz
rpg-8d9e6ae7b19a9971ec0d95cc904de6c07e6647dc.tar.bz2
improved diff permalink
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php7
1 files changed, 4 insertions, 3 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">