r94214 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94213‎ | r94214 | r94215 >
Date:23:58, 10 August 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
rem dead code
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php
@@ -147,18 +147,6 @@
148148 }
149149 }
150150
151 - // Find implicit ordering for RSS -- needed for downwards compatibility with SMW <=1.1
152 - /*
153 - if ( ($this->m_params['format'] == 'rss') && ($this->m_params['sort'] == '') && ($sortcount==0)) {
154 - foreach ($this->m_printouts as $printout) {
155 - if ((strtolower($printout->getLabel()) == "date") && ($printout->getTypeID() == "_dat")) {
156 - $this->m_params['sort'] = $printout->getTitle()->getText();
157 - $this->m_params['order'] = 'DESC';
158 - }
159 - }
160 - }
161 - */
162 -
163151 if ( !array_key_exists( 'offset', $this->m_params ) ) {
164152 $this->m_params['offset'] = $wgRequest->getVal( 'offset' );
165153 if ( $this->m_params['offset'] == '' ) $this->m_params['offset'] = 0;
@@ -812,21 +800,4 @@
813801 return $input->getHtml();
814802 }
815803
816 - /**
817 - * Compatibility method to get the skin; MW 1.18 introduces a getSkin method in SpecialPage.
818 - *
819 - * @since 1.6
820 - *
821 - * @return Skin
822 - */
823 - public function getSkin() {
824 - if ( method_exists( 'SpecialPage', 'getSkin' ) ) {
825 - return parent::getSkin();
826 - }
827 - else {
828 - global $wgUser;
829 - return $wgUser->getSkin();
830 - }
831 - }
832 -
833804 }