Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Ask.php |
— | — | @@ -37,7 +37,8 @@ |
38 | 38 | $result = smwfEncodeMessages( array( wfMsgForContent( 'smw_iq_disabled' ) ) ); |
39 | 39 | } |
40 | 40 | |
41 | | - if ( $wgTitle->isSpecialPage() ) { |
| 41 | + // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
| 42 | + if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
42 | 43 | global $wgOut; |
43 | 44 | SMWOutputs::commitToOutputPage( $wgOut ); |
44 | 45 | } |