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

Revision: 94214
Author:   jeroendedauw
Date:     2011-08-10 23:58:56 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
rem dead code

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php

Modified: 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php   
2011-08-10 23:57:10 UTC (rev 94213)
+++ trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php   
2011-08-10 23:58:56 UTC (rev 94214)
@@ -147,18 +147,6 @@
                        }
                }
 
-               // Find implicit ordering for RSS -- needed for downwards 
compatibility with SMW <=1.1
-               /*
-               if ( ($this->m_params['format'] == 'rss') && 
($this->m_params['sort'] == '') && ($sortcount==0)) {
-                       foreach ($this->m_printouts as $printout) {
-                               if ((strtolower($printout->getLabel()) == 
"date") && ($printout->getTypeID() == "_dat")) {
-                                       $this->m_params['sort'] = 
$printout->getTitle()->getText();
-                                       $this->m_params['order'] = 'DESC';
-                               }
-                       }
-               }
-               */
-
                if ( !array_key_exists( 'offset', $this->m_params ) ) {
                        $this->m_params['offset'] = $wgRequest->getVal( 
'offset' );
                        if ( $this->m_params['offset'] == '' )  
$this->m_params['offset'] = 0;
@@ -812,21 +800,4 @@
                return $input->getHtml();
        }
 
-    /**
-     * 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