Skip to content
Snippets Groups Projects
Commit 226bf2dc authored by Gina Haeussge's avatar Gina Haeussge
Browse files

FS#1821: Added a permalink to the diff output

parent 339bd727
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -163,6 +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['line'] = 'Line';
$lang['breadcrumb'] = 'Trace';
$lang['youarehere'] = 'You are here';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment