Index: trunk/extensions/Babel/Babel.class.php |
— | — | @@ -25,6 +25,8 @@ |
26 | 26 | |
27 | 27 | self::mTemplateLinkBatch( $parameters ); |
28 | 28 | |
| 29 | + $parser->getOutput()->addModuleStyles( 'ext.babel' ); |
| 30 | + |
29 | 31 | $content = ''; |
30 | 32 | $templateParameter[0] = '' ; // collects name=value parameters to be passed to wiki templates. |
31 | 33 | foreach ( $parameters as $name ) { |
— | — | @@ -106,6 +108,7 @@ |
107 | 109 | } |
108 | 110 | |
109 | 111 | $batch = new LinkBatch( $titles ); |
| 112 | + $batch->setCaller( __METHOD__ ); |
110 | 113 | $batch->execute(); |
111 | 114 | } |
112 | 115 | |
Index: trunk/extensions/Babel/BabelStatic.class.php |
— | — | @@ -14,8 +14,6 @@ |
15 | 15 | * @return Boolean: True. |
16 | 16 | */ |
17 | 17 | public static function Setup( $parser ) { |
18 | | - global $wgOut; |
19 | | - $wgOut->addModuleStyles( 'ext.babel' ); |
20 | 18 | $parser->setFunctionHook( 'babel', array( 'Babel', 'Render' ) ); |
21 | 19 | return true; |
22 | 20 | } |