render.ml updated to support newer ImageMagick and relative filepaths
[lhc/web/wiklou.git] / includes / SpecialRecentchangeslinked.php
index 25c1687..88cd478 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-include_once( "SpecialRecentchanges.php" );
+require_once( "SpecialRecentchanges.php" );
 
 function wfSpecialRecentchangeslinked( $par = NULL )
 {
@@ -57,6 +57,7 @@ function wfSpecialRecentchangeslinked( $par = NULL )
       "GROUP BY cur_id ORDER BY inverse_timestamp LIMIT {$limit}";
        $res = wfQuery( $sql, DB_READ, $fname );
 
+       $wgOut->addHTML("&lt; ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."<br />\n");
        $note = wfMsg( "rcnote", $limit, $days );
        $wgOut->addHTML( "<hr />\n{$note}\n<br />" );
 
@@ -68,13 +69,15 @@ function wfSpecialRecentchangeslinked( $par = NULL )
 
        $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;
        }