r95877 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95876‎ | r95877 | r95878 >
Date:15:33, 31 August 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
fixed copying of modules from sub-parseroutput
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Outputs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Outputs.php
@@ -118,9 +118,12 @@
119119 static public function requireFromParserOutput( ParserOutput $parserOutput ) {
120120 // Note: we do not attempt to recover which head items where scripts here.
121121 self::$headItems = array_merge( (array)self::$headItems, $parserOutput->getHeadItems() );
122 -// if ( isset( $parserOutput->mModules ) ) {
123 -// self::$headItems = array_merge( (array)self::$resourceModules, (array)$parserOutput->mModules );
124 -// }
 122+ /// TODO Is the following needed?
 123+ if ( isset( $parserOutput->mModules ) ) {
 124+ foreach ( $parserOutput->mModules as $module ) {
 125+ self::$resourceModules[$module] = $module;
 126+ }
 127+ }
125128 }
126129
127130 /**