r60769 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60768‎ | r60769 | r60770 >
Date:06:54, 7 January 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Fix copy/paste and no replace error in r55008
Modified paths:
  • /trunk/extensions/MagicNoNumberedHeadings/MagicNoNumberedHeadings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MagicNoNumberedHeadings/MagicNoNumberedHeadings.php
@@ -48,15 +48,14 @@
4949 );
5050
5151 $dir = dirname(__FILE__) . '/';
52 -$wgExtensionMessagesFiles['RegexFunctions'] = $dir . 'RegexFunctions.i18n.php';
53 -$wgExtensionMessagesFiles['RegexFunctionsMagic'] = $dir . 'RegexFunctions.i18n.magic.php';
 52+$wgExtensionMessagesFiles['MagicNoNumberedHeadings'] = $dir . 'MagicNoNumberedHeadings.i18n.php';
 53+$wgExtensionMessagesFiles['MagicNoNumberedHeadingsMagic'] = $dir . 'MagicNoNumberedHeadings.i18n.magic.php';
5454
5555 $wgHooks['ParserBeforeInternalParse'][] = 'MagicNoNumberedHeadingsParserBeforeInternalParse';
5656
5757 function MagicNoNumberedHeadingsParserBeforeInternalParse($parser, $text, $stripState)
5858 {
59 - if (MagicWord::get( 'MAG_NONUMBEREDHEADINGS' )->matchAndRemove( $text ) )
60 - {
 59+ if (MagicWord::get( 'MAG_NONUMBEREDHEADINGS' )->matchAndRemove( $text ) ) {
6160 $parser->mOptions->mNumberHeadings = (FALSE);
6261 }
6362 return true;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r55008* Babel, CategoryTree, MagicNoNumberedHeadings, RegexFunctions and SmoothGall...siebrand11:25, 14 August 2009

Status & tagging log