http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97415

Revision: 97415
Author:   nikerabbit
Date:     2011-09-18 12:39:10 +0000 (Sun, 18 Sep 2011)
Log Message:
-----------
Address one issue in r94138. Also added caller to linkbatch for debugging

Modified Paths:
--------------
    trunk/extensions/Babel/Babel.class.php
    trunk/extensions/Babel/BabelStatic.class.php

Modified: trunk/extensions/Babel/Babel.class.php
===================================================================
--- trunk/extensions/Babel/Babel.class.php      2011-09-18 11:36:43 UTC (rev 
97414)
+++ trunk/extensions/Babel/Babel.class.php      2011-09-18 12:39:10 UTC (rev 
97415)
@@ -25,6 +25,8 @@
 
                self::mTemplateLinkBatch( $parameters );
 
+               $parser->getOutput()->addModuleStyles( 'ext.babel' );
+
                $content = '';
                $templateParameter[0] = '' ;    // collects name=value 
parameters to be passed to wiki templates.
                foreach ( $parameters as $name ) {
@@ -106,6 +108,7 @@
                }
 
                $batch = new LinkBatch( $titles );
+               $batch->setCaller( __METHOD__ );
                $batch->execute();
        }
 

Modified: trunk/extensions/Babel/BabelStatic.class.php
===================================================================
--- trunk/extensions/Babel/BabelStatic.class.php        2011-09-18 11:36:43 UTC 
(rev 97414)
+++ trunk/extensions/Babel/BabelStatic.class.php        2011-09-18 12:39:10 UTC 
(rev 97415)
@@ -14,8 +14,6 @@
         * @return Boolean: True.
         */
        public static function Setup( $parser ) {
-               global $wgOut;
-               $wgOut->addModuleStyles( 'ext.babel' );
                $parser->setFunctionHook( 'babel', array( 'Babel', 'Render' ) );
                return true;
        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to