r100718 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100717‎ | r100718 | r100719 >
Date:18:04, 25 October 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
throw out bc code
Modified paths:
  • /trunk/extensions/SemanticResultFormats/SemanticResultFormats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/SemanticResultFormats.php
@@ -54,9 +54,7 @@
5555 // FIXME: Can be removed when new style magic words are used (introduced in r52503)
5656 $wgHooks['LanguageGetMagic'][] = 'SRFParserFunctions::languageGetMagic';
5757
58 -$wgExtensionFunctions[] = 'efSRFSetup';
59 -
60 -$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array(
 58+$wgExtensionCredits['semantic'][] = array(
6159 'path' => __FILE__,
6260 'name' => 'Semantic Result Formats',
6361 'version' => SRF_VERSION,
@@ -152,24 +150,6 @@
153151 }
154152
155153 /**
156 - * Extension initialization hook.
157 - *
158 - * @since 0.5.3
159 - *
160 - * @return true
161 - */
162 -function efSRFSetup() {
163 - global $wgVersion;
164 -
165 - // This function has been deprecated in 1.16, but needed for earlier versions.
166 - if ( version_compare( $wgVersion, '1.16', '<' ) ) {
167 - wfLoadExtensionMessages( 'SemanticResultFormats' );
168 - }
169 -
170 - return true;
171 -}
172 -
173 -/**
174154 * Adds a link to Admin Links page.
175155 */
176156 function srffAddToAdminLinks( &$admin_links_tree ) {

Status & tagging log