Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php |
— | — | @@ -78,10 +78,14 @@ |
79 | 79 | $wgOut->setPageTitle( $form_page_title ); |
80 | 80 | } |
81 | 81 | if ( $form_submitted ) { |
82 | | - global $wgUser, $wgTitle; |
| 82 | + global $wgUser, $wgTitle, $wgOut; |
83 | 83 | $wgParser->mOptions = new ParserOptions(); |
84 | 84 | $wgParser->mOptions->initialiseFromUser( $wgUser ); |
85 | 85 | $text = $wgParser->parse( $data_text, $wgTitle, $wgParser->mOptions )->getText(); |
| 86 | + foreach ( $wgParser->getOutput()->getHeadItems() as $key => $item ) { |
| 87 | + $wgOut->addHeadItem( $key, "\t\t" . $item . "\n" ); |
| 88 | + } |
| 89 | + |
86 | 90 | $additional_query = wfMsg( 'sf_runquery_additionalquery' ); |
87 | 91 | if ( !$raw ) |
88 | 92 | $text .= "\n<h2>$additional_query</h2>\n"; |