Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -234,14 +234,12 @@ |
235 | 235 | $scripts = array(); |
236 | 236 | if ( !$sfgUseFormEditPage ) |
237 | 237 | $scripts[] = "$sfgScriptPath/libs/SF_ajax_form_preview.js"; |
238 | | - // The calls to requireHeadItem(), in some circumstances, |
239 | | - // don't work - the two libraries don't get loaded. For now, |
240 | | - // just always load these manually. |
241 | | - // TODO - figure this out. |
242 | | - //if ( method_exists( 'SMWOutputs', 'requireHeadItem' ) ) { |
243 | | - if ( false ) { |
| 238 | + if ( method_exists( 'SMWOutputs', 'requireHeadItem' ) ) { |
244 | 239 | SMWOutputs::requireHeadItem( SMW_HEADER_TOOLTIP ); |
245 | 240 | SMWOutputs::requireHeadItem( SMW_HEADER_SORTTABLE ); |
| 241 | + // TODO - should this be called directly here, or is |
| 242 | + // there a "smarter" (in some way) place to put it? |
| 243 | + SMWOutputs::commitToOutputPage( $wgOut ); |
246 | 244 | } else { |
247 | 245 | $scripts[] = "$smwgScriptPath/skins/SMW_tooltip.js"; |
248 | 246 | $scripts[] = "$smwgScriptPath/skins/SMW_sorttable.js"; |