Index: trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php |
— | — | @@ -96,5 +96,21 @@ |
97 | 97 | |
98 | 98 | return $result; |
99 | 99 | } |
| 100 | + |
| 101 | + /** |
| 102 | + * Compatibility method to get the skin; MW 1.18 introduces a getSkin method in SpecialPage. |
| 103 | + * |
| 104 | + * @since 1.6 |
| 105 | + * |
| 106 | + * @return Skin |
| 107 | + */ |
| 108 | + public function getSkin() { |
| 109 | + if ( method_exists( 'SpecialPage', 'getSkin' ) ) { |
| 110 | + return parent::getSkin(); |
| 111 | + } else { |
| 112 | + global $wgUser; |
| 113 | + return $wgUser->getSkin(); |
| 114 | + } |
| 115 | + } |
100 | 116 | |
101 | 117 | } |