Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -306,7 +306,7 @@ |
307 | 307 | /** |
308 | 308 | * Format a line using the old system (aka without any javascript). |
309 | 309 | */ |
310 | | - public function recentChangesLine( &$rc, $watched = false ) { |
| 310 | + public function recentChangesLine( &$rc, $watched = false, $linenumber = NULL ) { |
311 | 311 | global $wgContLang, $wgRCShowChangedSize, $wgUser; |
312 | 312 | |
313 | 313 | $fname = 'ChangesList::recentChangesLineOld'; |
— | — | @@ -321,7 +321,17 @@ |
322 | 322 | |
323 | 323 | $this->insertDateHeader($s,$rc_timestamp); |
324 | 324 | |
325 | | - $s .= '<li>'; |
| 325 | + // use even/odd class only if linenumber is given (feature from bug 14468) |
| 326 | + if( $linenumber ) { |
| 327 | + if( $linenumber & 1 ) { |
| 328 | + $s .= '<li class="odd">'; |
| 329 | + } |
| 330 | + else { |
| 331 | + $s .= '<li class="even">'; |
| 332 | + } |
| 333 | + } else { |
| 334 | + $s .= '<li>'; |
| 335 | + } |
326 | 336 | |
327 | 337 | // Moved pages |
328 | 338 | if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) { |
Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -378,7 +378,7 @@ |
379 | 379 | } |
380 | 380 | $rc->numberofWatchingusers = $watcherCache[$obj->rc_namespace][$obj->rc_title]; |
381 | 381 | } |
382 | | - $s .= $list->recentChangesLine( $rc, !empty( $obj->wl_user ) ); |
| 382 | + $s .= $list->recentChangesLine( $rc, !empty( $obj->wl_user ), $counter ); |
383 | 383 | --$limit; |
384 | 384 | } |
385 | 385 | } |
Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -342,7 +342,7 @@ |
343 | 343 | $rc->numberofWatchingusers = 0; |
344 | 344 | } |
345 | 345 | |
346 | | - $s .= $list->recentChangesLine( $rc, $updated ); |
| 346 | + $s .= $list->recentChangesLine( $rc, $updated, $counter ); |
347 | 347 | } |
348 | 348 | $s .= $list->endRecentChangesList(); |
349 | 349 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -37,15 +37,15 @@ |
38 | 38 | Backwards compatibility is maintained. |
39 | 39 | * $wgEnablePersistentCookies has been added. Setting to false disables the |
40 | 40 | setting of persistent cookies. Defaults to true. |
41 | | - |
| 41 | + |
42 | 42 | === New features in 1.14 === |
43 | 43 | |
44 | | -* New URL syntaxes for Special:ListUsers - 'Special:ListUsers/USER' and |
45 | | - 'Special:ListUsers/GROUP/USER', in addition to the older syntax |
| 44 | +* New URL syntaxes for Special:ListUsers - 'Special:ListUsers/USER' and |
| 45 | + 'Special:ListUsers/GROUP/USER', in addition to the older syntax |
46 | 46 | 'Special:ListUsers/GROUP' where GROUP is a valid group name. |
47 | | -* Configurable er-namespace and per-page notices for the edit form, |
| 47 | +* Configurable er-namespace and per-page notices for the edit form, |
48 | 48 | respectively MediaWiki:Editnotice-# where # is the namespace number, and |
49 | | - MediaWiki:Editnotice-#-PAGENAME where # is the page's namespace number and |
| 49 | + MediaWiki:Editnotice-#-PAGENAME where # is the page's namespace number and |
50 | 50 | PAGENAME is the page name minus the namespace prefix. |
51 | 51 | * (bug 8068) New __INDEX__ and __NOINDEX__ magic words allow user control of |
52 | 52 | search engine indexing on a per-article basis. |
— | — | @@ -80,7 +80,7 @@ |
81 | 81 | * (bug 14929) removeUnusedAccounts.php now supports 'ignore-touched' and |
82 | 82 | 'ignore-groups'. Patch by Louperivois |
83 | 83 | * (bug 15127) Work around minor display glitch in Opera. |
84 | | -* By default, reject file uploads that look like ZIP files, to avoid the |
| 84 | +* By default, reject file uploads that look like ZIP files, to avoid the |
85 | 85 | so-called GIFAR vulnerability. |
86 | 86 | * (bug 15141) Give ability to only list protected pages with the cascading |
87 | 87 | option enabled on Special:ProtectedPages |
— | — | @@ -88,7 +88,9 @@ |
89 | 89 | Show/Hide logged in users, Show/Hide anonymous, Invert namespace selection |
90 | 90 | * Added hook 'UserrightsChangeableGroups' to allow modification of what |
91 | 91 | groups may be added or removed via the Special:UserRights interface. |
92 | | - |
| 92 | +* (bug 14468) Lines in classic RecentChanges and Watchlist have classes "odd" |
| 93 | + and "even" to make colouring using css possible. |
| 94 | + |
93 | 95 | === Bug fixes in 1.14 === |
94 | 96 | |
95 | 97 | * (bug 14907) DatabasePostgres::fieldType now defined. |