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