Skip to content

Commit

Permalink
FS#1821: Added a permalink to the diff output
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Jun 27, 2010
1 parent 339bd72 commit 226bf2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/html.php
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions inc/lang/en/lang.php
Expand Up @@ -163,6 +163,7 @@
$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';
Expand Down

0 comments on commit 226bf2d

Please sign in to comment.