Index: trunk/extensions/MagicNoNumberedHeadings/MagicNoNumberedHeadings.php |
— | — | @@ -48,15 +48,14 @@ |
49 | 49 | ); |
50 | 50 | |
51 | 51 | $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'; |
54 | 54 | |
55 | 55 | $wgHooks['ParserBeforeInternalParse'][] = 'MagicNoNumberedHeadingsParserBeforeInternalParse'; |
56 | 56 | |
57 | 57 | function MagicNoNumberedHeadingsParserBeforeInternalParse($parser, $text, $stripState) |
58 | 58 | { |
59 | | - if (MagicWord::get( 'MAG_NONUMBEREDHEADINGS' )->matchAndRemove( $text ) ) |
60 | | - { |
| 59 | + if (MagicWord::get( 'MAG_NONUMBEREDHEADINGS' )->matchAndRemove( $text ) ) { |
61 | 60 | $parser->mOptions->mNumberHeadings = (FALSE); |
62 | 61 | } |
63 | 62 | return true; |