From eee9aaec3b175b3d3100d9e48d845e99adaa20e6 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 9 Apr 2004 23:44:18 +0000 Subject: [PATCH] counter for tab indexes and similar --- includes/SpecialRecentchanges.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 9cf8adb4e5..2fa0bb91d2 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -141,6 +141,7 @@ function wfSpecialRecentchanges( $par ) } else { $wgOut->setSyndicated( true ); $s = $sk->beginRecentChangesList(); + $counter = 1; foreach( $rows as $obj ){ if( $limit == 0) { break; @@ -148,6 +149,7 @@ function wfSpecialRecentchanges( $par ) if ( ! ( $hideminor && $obj->rc_minor ) ) { $rc = RecentChange::newFromRow( $obj ); + $rc->counter = $counter++; $s .= $sk->recentChangesLine( $rc, !empty( $obj->wl_user ) ); --$limit; } -- 2.20.1