r89313 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89312‎ | r89313 | r89314 >
Date:01:38, 2 June 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r88567, fix bug 29240
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php
@@ -96,5 +96,21 @@
9797
9898 return $result;
9999 }
 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+ }
100116
101117 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r88567Removed Type namespace, and moved its main functionality to Special:Types;...mkroetzsch10:29, 22 May 2011

Status & tagging log