Skip to content

Commit

Permalink
added rev number to most recent link in old revisions page
Browse files Browse the repository at this point in the history
  • Loading branch information
metinn committed Jun 3, 2016
1 parent 3b82d1e commit fe101f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/html.php
Expand Up @@ -550,7 +550,9 @@ function html_revisions($first=0, $media_id = false){
$sizechange = null;
}
}
$href = wl($id);
$pagelog = new PageChangeLog($ID);
$latestrev = $pagelog->getRevisions(-1, 1)[0];
$href = wl($id,"rev=$latestrev",false,'&');
$summary = $INFO['sum'];
$editor = $INFO['editor'];
}
Expand Down

0 comments on commit fe101f3

Please sign in to comment.