Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Concept.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | '<pre>' . str_replace( '[', '[', $concept_text ) . "</pre>\n</div>"; |
75 | 75 | |
76 | 76 | // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
77 | | - if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
| 77 | + if ( !is_null( $wgTitle ) && $wgTitle->getNamespace() == NS_SPECIAL ) { |
78 | 78 | global $wgOut; |
79 | 79 | SMWOutputs::commitToOutputPage( $wgOut ); |
80 | 80 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Info.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | |
33 | 33 | // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
34 | 34 | global $wgTitle; |
35 | | - if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
| 35 | + if ( !is_null( $wgTitle ) && $wgTitle->getNamespace() == NS_SPECIAL ) { |
36 | 36 | global $wgOut; |
37 | 37 | SMWOutputs::commitToOutputPage( $wgOut ); |
38 | 38 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Ask.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | } |
40 | 40 | |
41 | 41 | // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
42 | | - if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
| 42 | + if ( !is_null( $wgTitle ) && $wgTitle->getNamespace() == NS_SPECIAL ) { |
43 | 43 | global $wgOut; |
44 | 44 | SMWOutputs::commitToOutputPage( $wgOut ); |
45 | 45 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_SetRecurringEvent.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | |
44 | 44 | // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
45 | 45 | global $wgTitle; |
46 | | - if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
| 46 | + if ( !is_null( $wgTitle ) && $wgTitle->getNamespace() == NS_SPECIAL ) { |
47 | 47 | global $wgOut; |
48 | 48 | SMWOutputs::commitToOutputPage( $wgOut ); |
49 | 49 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Declare.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | |
78 | 78 | // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
79 | 79 | global $wgTitle; |
80 | | - if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
| 80 | + if ( !is_null( $wgTitle ) && $wgTitle->getNamespace() == NS_SPECIAL ) { |
81 | 81 | global $wgOut; |
82 | 82 | SMWOutputs::commitToOutputPage( $wgOut ); |
83 | 83 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Show.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | } |
40 | 40 | |
41 | 41 | // Starting from MW 1.16, there is a more suited method available: Title::isSpecialPage |
42 | | - if ( $wgTitle->getNamespace() == NS_SPECIAL ) { |
| 42 | + if ( !is_null( $wgTitle ) && $wgTitle->getNamespace() == NS_SPECIAL ) { |
43 | 43 | global $wgOut; |
44 | 44 | SMWOutputs::commitToOutputPage( $wgOut ); |
45 | 45 | } |