Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Concept.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | * @param Parser $parser |
25 | 25 | */ |
26 | 26 | public static function render( Parser &$parser ) { |
27 | | - global $smwgQDefaultNamespaces, $smwgQMaxSize, $smwgQMaxDepth, $wgContLang; |
| 27 | + global $smwgQDefaultNamespaces, $smwgQMaxSize, $smwgQMaxDepth, $wgContLang, $wgTitle; |
28 | 28 | |
29 | 29 | smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
30 | 30 | |
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_SetRecurringEvent.php |
— | — | @@ -41,6 +41,7 @@ |
42 | 42 | } |
43 | 43 | |
44 | 44 | // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
| 45 | + global $wgTitle; |
45 | 46 | if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
46 | 47 | global $wgOut; |
47 | 48 | SMWOutputs::commitToOutputPage( $wgOut ); |
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Declare.php |
— | — | @@ -75,6 +75,7 @@ |
76 | 76 | } |
77 | 77 | |
78 | 78 | // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
| 79 | + global $wgTitle; |
79 | 80 | if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
80 | 81 | global $wgOut; |
81 | 82 | SMWOutputs::commitToOutputPage( $wgOut ); |
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Show.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++; |