<?php
-include_once( "SpecialRecentchanges.php" );
+require_once( "SpecialRecentchanges.php" );
function wfSpecialRecentchangeslinked( $par = NULL )
{
"GROUP BY cur_id ORDER BY inverse_timestamp LIMIT {$limit}";
$res = wfQuery( $sql, DB_READ, $fname );
+ $wgOut->addHTML("< ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."<br />\n");
$note = wfMsg( "rcnote", $limit, $days );
- $wgOut->addHTML( "<hr>\n{$note}\n<br>" );
+ $wgOut->addHTML( "<hr />\n{$note}\n<br />" );
$note = rcDayLimitlinks( $days, $limit, "Recentchangeslinked",
"target=" . $nt->getPrefixedURL() . "&hideminor={$hideminor}",
$s = $sk->beginRecentChangesList();
$count = wfNumRows( $res );
-
+
+ $counter = 1;
while ( $limit ) {
if ( 0 == $count ) { break; }
$obj = wfFetchObject( $res );
--$count;
$rc = RecentChange::newFromCurRow( $obj );
+ $rc->counter = $counter++;
$s .= $sk->recentChangesLine( $rc );
--$limit;
}