r102892 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102891‎ | r102892 | r102893 >
Date:12:46, 13 November 2011
Author:robin
Status:ok
Tags:
Comment:
Localise numbers in TOC added in r102334
Modified paths:
  • /trunk/phase3/includes/specials/SpecialEditWatchlist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialEditWatchlist.php
@@ -411,7 +411,8 @@
412412 $nsText = ($ns == NS_MAIN)
413413 ? wfMsgHtml( 'blanknamespace' )
414414 : htmlspecialchars( $wgContLang->getFormattedNsText( $ns ) );
415 - $this->toc .= Linker::tocLine( "mw-htmlform-{$data['section']}", $nsText, ++$tocLength, 1 ) . Linker::tocLineEnd();
 415+ $this->toc .= Linker::tocLine( "mw-htmlform-{$data['section']}", $nsText,
 416+ $this->getLang()->formatNum( ++$tocLength ), 1 ) . Linker::tocLineEnd();
416417 }
417418 $this->toc = Linker::tocList( $this->toc );
418419 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102334(bug 31502) (follow-up r84718) Restore ToC to Special:EditWatchlist if there ...happy-melon22:11, 7 November 2011

Status & tagging log