r102393 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102392‎ | r102393 | r102394 >
Date:12:07, 8 November 2011
Author:hashar
Status:resolved
Tags:
Comment:
add quick comment from r102334 cr
Modified paths:
  • /trunk/phase3/includes/specials/SpecialEditWatchlist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialEditWatchlist.php
@@ -410,8 +410,11 @@
411411 $this->toc = Linker::tocIndent();
412412 $tocLength = 0;
413413 foreach( $fields as $key => $data ) {
 414+
 415+ # strip out the 'ns-' prefix from the section name:
414416 $ns = substr( $data['section'], 2 );
415 - $nsText = $ns == NS_MAIN
 417+
 418+ $nsText = ($ns == NS_MAIN)
416419 ? wfMsgHtml( 'blanknamespace' )
417420 : htmlspecialchars( $wgContLang->getFormattedNsText( $ns ) );
418421 $this->toc .= Linker::tocLine( "mw-htmlform-{$data['section']}", $nsText, ++$tocLength, 1 ) . Linker::tocLineEnd();
@@ -574,4 +577,4 @@
575578 // Need to call into grandparent to be a good citizen. :)
576579 return HTMLFormField::validate( $value, $alldata );
577580 }
578 -}
\ No newline at end of file
 581+}

Follow-up revisions

RevisionCommit summaryAuthorDate
r102396correct typo in r102393hashar13:24, 8 November 2011

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