Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -361,7 +361,7 @@ |
362 | 362 | /** |
363 | 363 | * Format a line using the old system (aka without any javascript). |
364 | 364 | */ |
365 | | - public function recentChangesLine( &$rc, $watched = false ) { |
| 365 | + public function recentChangesLine( &$rc, $watched = false, $linenumber = NULL ) { |
366 | 366 | global $wgContLang, $wgLang, $wgRCShowChangedSize, $wgUser; |
367 | 367 | wfProfileIn( __METHOD__ ); |
368 | 368 | # Should patrol-related stuff be shown? |
— | — | @@ -372,6 +372,16 @@ |
373 | 373 | |
374 | 374 | $s = ''; |
375 | 375 | $classes = array(); |
| 376 | + // use mw-line-even/mw-line-odd class only if linenumber is given (feature from bug 14468) |
| 377 | + if( $linenumber ) { |
| 378 | + if( $linenumber & 1 ) { |
| 379 | + $classes[] = 'mw-line-odd'; |
| 380 | + } |
| 381 | + else { |
| 382 | + $classes[] = 'mw-line-even'; |
| 383 | + } |
| 384 | + } |
| 385 | + |
376 | 386 | // Moved pages |
377 | 387 | if( $rc->mAttribs['rc_type'] == RC_MOVE || $rc->mAttribs['rc_type'] == RC_MOVE_OVER_REDIRECT ) { |
378 | 388 | $this->insertMove( $s, $rc ); |
Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -381,7 +381,7 @@ |
382 | 382 | } |
383 | 383 | $rc->numberofWatchingusers = $watcherCache[$obj->rc_namespace][$obj->rc_title]; |
384 | 384 | } |
385 | | - $s .= $list->recentChangesLine( $rc, !empty( $obj->wl_user ) ); |
| 385 | + $s .= $list->recentChangesLine( $rc, !empty( $obj->wl_user ), $counter ); |
386 | 386 | --$limit; |
387 | 387 | } |
388 | 388 | $s .= $list->endRecentChangesList(); |
Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -357,7 +357,7 @@ |
358 | 358 | $rc->numberofWatchingusers = 0; |
359 | 359 | } |
360 | 360 | |
361 | | - $s .= $list->recentChangesLine( $rc, $updated ); |
| 361 | + $s .= $list->recentChangesLine( $rc, $updated, $counter ); |
362 | 362 | } |
363 | 363 | $s .= $list->endRecentChangesList(); |
364 | 364 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -74,9 +74,10 @@ |
75 | 75 | * Local redirects to foreign images are now displayed on the ImagePage when |
76 | 76 | viewing on the local wiki. |
77 | 77 | * (bug 8249) The magic words for namespaces and pagenames can now be used as |
78 | | - parser functions to return the desired namespace or normalized title/title part |
79 | | - for a given title. |
80 | | -* Styled #mw-data-after-content in cologneblue.css to match the rest of the font (bug 17110) |
| 78 | + parser functions to return the desired namespace or normalized title/title |
| 79 | + part for a given title. |
| 80 | +* (bug 17110) Styled #mw-data-after-content in cologneblue.css to match the |
| 81 | + rest of the font |
81 | 82 | * (bug 7556) Time zone names in signatures lack i18n |
82 | 83 | * (bug 3311) Automatic category redirects |
83 | 84 | * (bug 17236) Suppress 'watch user page link' for IP range blocks |
— | — | @@ -88,6 +89,8 @@ |
89 | 90 | LanguageConverter class) |
90 | 91 | * (bug 17379) Contributions-title is now parsed for magic words. |
91 | 92 | * Preprocessor output now cached in memcached. |
| 93 | +* (bug 14468) Lines in classic RecentChanges and Watchlist have classes |
| 94 | + "mw-line-odd" and "mw-line-even" to make styling using css possible. |
92 | 95 | |
93 | 96 | === Bug fixes in 1.15 === |
94 | 97 | * (bug 16968) Special:Upload no longer throws useless warnings. |
— | — | @@ -120,21 +123,23 @@ |
121 | 124 | * (bug 15811) Re-upload form tweaks: license fields removed, destination locked, |
122 | 125 | comment label uses better message |
123 | 126 | * Whole HTML validation ($wgValidateAllHtml) now works with external tidy |
124 | | -* Parser tests no longer fail when $wgExternalLinkTarget is set in LocalSettings |
125 | | -* (bug 15391) catch DBQueryErrors on external storage insertion. This avoids error |
126 | | - messages on save were the edit in fact is saved. |
| 127 | +* Parser tests no longer fail when $wgExternalLinkTarget is set in |
| 128 | + LocalSettings |
| 129 | +* (bug 15391) catch DBQueryErrors on external storage insertion. This avoids |
| 130 | + error messages on save were the edit in fact is saved. |
127 | 131 | * (bug 17184) Remove duplicate "z" accesskey in MonoBook |
128 | 132 | * Parser tests no longer fail when $wgAlwaysUseTidy is set in LocalSettings.php |
129 | 133 | * Removed redundant dupe warnings on reupload for the same title. Dupe warnings |
130 | 134 | for identical files at different titles are still given. |
131 | 135 | * Add 'change tagging' facility, where changes can be tagged internally with |
132 | | - certain designations, which are displayed on various summaries of changes, and |
133 | | - the entries can be styled with CSS. |
| 136 | + certain designations, which are displayed on various summaries of changes, |
| 137 | + and the entries can be styled with CSS. |
134 | 138 | * (bug 17207) Fix regression breaking category page display on PHP 5.1 |
135 | 139 | * Categoryfinder utility class no longer fails on invalid input or gives wrong |
136 | 140 | results for category names that include pseudo-namespaces |
137 | 141 | * (bug 17252) Galician numbering format |
138 | | -* (bug 17146) Fix for UTF-8 and short word search for some possible MySQL configs |
| 142 | +* (bug 17146) Fix for UTF-8 and short word search for some possible MySQL |
| 143 | + configs |
139 | 144 | * (bug 7480) Internationalize database error message |
140 | 145 | * (bug 16555) Number of links to mediawiki.org scaled back on post-installation |
141 | 146 | * (bug 14938) Removing a section no longer leaves excess whitespace |
— | — | @@ -174,8 +179,8 @@ |
175 | 180 | performance concerns |
176 | 181 | * Listing (semi-)deleted revisions and log entries as well in prop=revisions and |
177 | 182 | list=logevents |
178 | | -* (bug 11430) BREAKING CHANGE: Modules may return fewer results than the limit and still |
179 | | - set a query-continue in some cases |
| 183 | +* (bug 11430) BREAKING CHANGE: Modules may return fewer results than the limit |
| 184 | + and still set a query-continue in some cases |
180 | 185 | |
181 | 186 | === Languages updated in 1.15 === |
182 | 187 | |