r24033 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24032‎ | r24033 | r24034 >
Date:14:25, 12 July 2007
Author:brion
Status:old
Tags:
Comment:
* (bug 10552) Suppress rollback link in history for single-revision pages
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/PageHistory.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/PageHistory.php
@@ -247,13 +247,13 @@
248248
249249 $tools = array();
250250
251 - if( $wgUser->isAllowed( 'rollback' ) && $latest ) {
252 - $tools[] = '<span class="mw-rollback-link">'
253 - . $this->mSkin->buildRollbackLink( $rev )
254 - . '</span>';
255 - }
256 -
257251 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+
258258 $undolink = $this->mSkin->makeKnownLinkObj(
259259 $this->mTitle,
260260 wfMsgHtml( 'editundo' ),
Index: trunk/phase3/RELEASE-NOTES
@@ -278,7 +278,9 @@
279279 * Padding parser functions now work with strings like '0' that evaluate to false
280280 * (bug 10332) Title->userCan( 'edit' ) may return false positive
281281 * 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
282283
 284+
283285 == API changes since 1.10 ==
284286
285287 Full API documentation is available at http://www.mediawiki.org/wiki/API

Follow-up revisions

RevisionCommit summaryAuthorDate
r24096Merged revisions 23910-24094 via svnmerge from...david22:38, 14 July 2007

Status & tagging log