Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Ask.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | * @param Parser $parser |
25 | 25 | */ |
26 | 26 | public static function render( Parser &$parser ) { |
27 | | - global $smwgQEnabled, $smwgIQRunningNumber; |
| 27 | + global $smwgQEnabled, $smwgIQRunningNumber, $wgTitle; |
28 | 28 | |
29 | 29 | if ( $smwgQEnabled ) { |
30 | 30 | $smwgIQRunningNumber++; |
— | — | @@ -37,7 +37,13 @@ |
38 | 38 | $result = smwfEncodeMessages( array( wfMsgForContent( 'smw_iq_disabled' ) ) ); |
39 | 39 | } |
40 | 40 | |
41 | | - SMWOutputs::commitToParser( $parser ); |
| 41 | + if ( $wgTitle->isSpecialPage() ) { |
| 42 | + global $wgOut; |
| 43 | + SMWOutputs::commitToOutputPage( $wgOut ); |
| 44 | + } |
| 45 | + else { |
| 46 | + SMWOutputs::commitToParser( $parser ); |
| 47 | + } |
42 | 48 | |
43 | 49 | return $result; |
44 | 50 | } |