r77057 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77056‎ | r77057 | r77058 >
Date:15:16, 20 November 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
The RL takes care not to load modules multiple times and this code was breaking the factbox
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Outputs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Outputs.php
@@ -185,8 +185,7 @@
186186 if ( method_exists( $parserOutput, 'addModules' ) ) {
187187 $parserOutput->addModules( array_values( self::$resourceModules ) );
188188 }
189 -
190 - self::$resourceModules = array();
 189+
191190 self::$mHeadItems = array();
192191 }
193192
@@ -209,8 +208,7 @@
210209 if ( method_exists( $output, 'addModules' ) ) {
211210 $output->addModules( array_values( self::$resourceModules ) );
212211 }
213 -
214 - self::$resourceModules = array();
 212+
215213 self::$mHeadItems = array();
216214 }
217215

Status & tagging log