http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89313

Revision: 89313
Author:   jeroendedauw
Date:     2011-06-02 01:38:43 +0000 (Thu, 02 Jun 2011)
Log Message:
-----------
follow up to r88567, fix bug 29240

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php

Modified: 
trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php 
2011-06-02 01:28:30 UTC (rev 89312)
+++ trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php 
2011-06-02 01:38:43 UTC (rev 89313)
@@ -96,5 +96,21 @@
 
                return $result;
        }
+       
+    /**
+     * Compatibility method to get the skin; MW 1.18 introduces a getSkin 
method in SpecialPage.
+     *
+     * @since 1.6
+     *
+     * @return Skin
+     */
+    public function getSkin() {
+        if ( method_exists( 'SpecialPage', 'getSkin' ) ) {
+            return parent::getSkin();
+        } else {
+            global $wgUser;
+            return $wgUser->getSkin();
+        }
+    }  
 
 }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to