Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Outputs.php |
— | — | @@ -118,9 +118,12 @@ |
119 | 119 | static public function requireFromParserOutput( ParserOutput $parserOutput ) { |
120 | 120 | // Note: we do not attempt to recover which head items where scripts here. |
121 | 121 | 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 | + } |
125 | 128 | } |
126 | 129 | |
127 | 130 | /** |