Index: trunk/extensions/ReferenceTooltips/ReferenceTooltips.php |
— | — | @@ -36,10 +36,8 @@ |
37 | 37 | 'position' => 'bottom', |
38 | 38 | ); |
39 | 39 | |
40 | | -function rtfBeforePageDisplay() { |
41 | | - global $wgOut; |
42 | | - |
43 | | - $wgOut->addModules( 'ext.reference-tooltips' ); |
44 | | - |
| 40 | +function rtfBeforePageDisplay( $out, &$sk ) { |
| 41 | + $out->addModules( 'ext.reference-tooltips' ); |
| 42 | + |
45 | 43 | return true; |
46 | 44 | } |
Index: trunk/extensions/Cite/Cite.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | |
50 | 50 | /** |
51 | 51 | * Performs the hook registration. |
52 | | - * Note that several extensions (and even core!) try to detect if Cite is |
| 52 | + * Note that several extensions (and even core!) try to detect if Cite is |
53 | 53 | * installed by looking for wfCite(). |
54 | 54 | * |
55 | 55 | * @param $parser Parser |
— | — | @@ -80,13 +80,10 @@ |
81 | 81 | 'position' => 'bottom', |
82 | 82 | ); |
83 | 83 | |
84 | | -function wfCiteBeforePageDisplay() { |
85 | | - global $wgOut; |
86 | | - |
87 | | - $wgOut->addModules( 'ext.cite' ); |
88 | | - |
| 84 | +function wfCiteBeforePageDisplay( $out, &$sk ) { |
| 85 | + $out->addModules( 'ext.cite' ); |
| 86 | + |
89 | 87 | return true; |
90 | 88 | } |
91 | 89 | |
92 | | - |
93 | 90 | /**#@-*/ |