Index: trunk/extensions/SubPageList3/SubPageList3.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | die( 1 ); |
18 | 18 | } |
19 | 19 | |
20 | | -$wgExtensionFunctions[] = 'efSubpageList3'; |
| 20 | +$wgHooks['ParserFirstCallInit'][] = 'efSubpageList3'; |
21 | 21 | $wgExtensionCredits['parserhook'][] = array( |
22 | 22 | 'path' => __FILE__, |
23 | 23 | 'name' => 'Subpage List 3', |
— | — | @@ -36,9 +36,9 @@ |
37 | 37 | /** |
38 | 38 | * Hook in function |
39 | 39 | */ |
40 | | -function efSubpageList3() { |
41 | | - global $wgParser; |
42 | | - $wgParser->setHook( 'splist', 'efRenderSubpageList3' ); |
| 40 | +function efSubpageList3( &$parser ) { |
| 41 | + $parser->setHook( 'splist', 'efRenderSubpageList3' ); |
| 42 | + return true; |
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |