Index: trunk/extensions/PSINoTocNum/PSINoTocNum.php |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | $wgHooks['ParserBeforeInternalParse'][] = 'PSINoTocNumParserBeforeInternalParse'; |
60 | 60 | |
61 | 61 | function PSINoTocNumParserBeforeInternalParse($parser, $text, $stripState) { |
62 | | - if (MagicWord::get( MAG_NOTOCNUM )->matchAndRemove( $text ) ) { |
| 62 | + if (MagicWord::get( 'MAG_NOTOCNUM' )->matchAndRemove( $text ) ) { |
63 | 63 | global $wgOut; |
64 | 64 | $wgOut->addScript(' |
65 | 65 | <style type="text/css"><!-- .tocnumber {display:none;} --></style> |