"action=history", $atend );
$s = $numbar;
$s .= $this->beginHistoryList();
-
+ $counter = 1;
if( $offset == 0 ){
$this->linesonpage++;
$s .= $this->historyLine(
$this->mArticle->getTimestamp(),
$this->mArticle->getUser(),
$this->mArticle->getUserText(), $namespace,
- $title, 0, $this->mArticle->getComment(),
- ( $this->mArticle->getMinorEdit() > 0 )
+ $title, 0, $this->mArticle->getComment(),
+ ( $this->mArticle->getMinorEdit() > 0 ),
+ $counter++
);
}
while ( $line = wfFetchObject( $res ) ) {
- $s .= $this->historyLine( $line->old_timestamp, $line->old_user,
- $line->old_user_text, $namespace,
- $title, $line->old_id,
- $line->old_comment, ( $line->old_minor_edit > 0 ) );
+ $s .= $this->historyLine(
+ $line->old_timestamp, $line->old_user,
+ $line->old_user_text, $namespace,
+ $title, $line->old_id,
+ $line->old_comment, ( $line->old_minor_edit > 0 ),
+ $counter++
+ );
}
$s .= $this->endHistoryList( !$atend );
$s .= $numbar;
{
global $wgTitle;
$this->lastdate = $this->lastline = "";
- $s = "\n<p>" . wfMsg( "histlegend" ) . "</p>\n<ul class='special'>";
$url = $wgTitle->getFullURL("-");
- $s .= "<script type='text/javascript'>
- //<![CDATA[
+ $s = "\n<script type='text/javascript'>
+ /*<![CDATA[*/
var sel = -1;
function anysel(oid){
row = document.getElementById(\"ver\" + oid);
u = \"{$url}diff=\" + diff + \"&oldid=\" + oldid;
location.href=u;
}
- //]]>
+ /*]]>*/
</script>";
+ $s .= "\n<p>" . wfMsg( "histlegend" ) . "</p>\n<ul class='special'>";
return $s;
}
return $s;
}
- function historyLine( $ts, $u, $ut, $ns, $ttl, $oid, $c, $isminor )
+ function historyLine( $ts, $u, $ut, $ns, $ttl, $oid, $c, $isminor, $counter = '' )
{
global $wgLang;
if ( $oid && $this->lastline ) {
$ret = preg_replace( "/!OLDID!([0-9]+)!/", $this->mSkin->makeKnownLink(
- $artname, $last, "diff=\\1&oldid={$oid}" ), $this->lastline );
+ $artname, $last, "diff=\\1&oldid={$oid}",'' ,'' ,' tabindex="'.$counter.'"' ), $this->lastline );
} else {
$ret = "";
}