Index: trunk/phase3/includes/PageHistory.php |
— | — | @@ -247,13 +247,13 @@ |
248 | 248 | |
249 | 249 | $tools = array(); |
250 | 250 | |
251 | | - if( $wgUser->isAllowed( 'rollback' ) && $latest ) { |
252 | | - $tools[] = '<span class="mw-rollback-link">' |
253 | | - . $this->mSkin->buildRollbackLink( $rev ) |
254 | | - . '</span>'; |
255 | | - } |
256 | | - |
257 | 251 | if ( !is_null( $next ) ) { |
| 252 | + if( $wgUser->isAllowed( 'rollback' ) && $latest ) { |
| 253 | + $tools[] = '<span class="mw-rollback-link">' |
| 254 | + . $this->mSkin->buildRollbackLink( $rev ) |
| 255 | + . '</span>'; |
| 256 | + } |
| 257 | + |
258 | 258 | $undolink = $this->mSkin->makeKnownLinkObj( |
259 | 259 | $this->mTitle, |
260 | 260 | wfMsgHtml( 'editundo' ), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -278,7 +278,9 @@ |
279 | 279 | * Padding parser functions now work with strings like '0' that evaluate to false |
280 | 280 | * (bug 10332) Title->userCan( 'edit' ) may return false positive |
281 | 281 | * Fix bug with <nowiki> in front of links for wikis where linkPrefixExtension is true |
| 282 | +* (bug 10552) Suppress rollback link in history for single-revision pages |
282 | 283 | |
| 284 | + |
283 | 285 | == API changes since 1.10 == |
284 | 286 | |
285 | 287 | Full API documentation is available at http://www.mediawiki.org/wiki/API |