Skip to content

Commit

Permalink
fixed another special case of issue 314
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jun 2, 2011
1 parent 5fd53d8 commit b2e35c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filedetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
$youngest = ($history && isset($history->entries[0])) ? $history->entries[0]->rev : false;

if (empty($rev)) {
$rev = $youngest;
$rev = !$peg ? $youngest : min($peg, $youngest);
}

$extn = strtolower(strrchr($path, '.'));
Expand Down Expand Up @@ -131,7 +131,7 @@
$passRevString = createRevAndPegString($rev, $peg);

if ($rev != $youngest) {
$vars['goyoungesturl'] = $config->getURL($rep, $path, 'file').createRevAndPegString('', $peg);
$vars['goyoungesturl'] = $config->getURL($rep, $path, 'file').createRevAndPegString($youngest, $peg);
$vars['goyoungestlink'] = '<a href="'.$vars['goyoungesturl'].'"'.($youngest ? ' title="'.$lang['REV'].' '.$youngest.'"' : '').'>'.$lang['GOYOUNGEST'].'</a>';
}

Expand Down

0 comments on commit b2e35c2

Please sign in to comment.