http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100718
Revision: 100718 Author: jeroendedauw Date: 2011-10-25 18:04:07 +0000 (Tue, 25 Oct 2011) Log Message: ----------- throw out bc code Modified Paths: -------------- trunk/extensions/SemanticResultFormats/SemanticResultFormats.php Modified: trunk/extensions/SemanticResultFormats/SemanticResultFormats.php =================================================================== --- trunk/extensions/SemanticResultFormats/SemanticResultFormats.php 2011-10-25 17:37:38 UTC (rev 100717) +++ trunk/extensions/SemanticResultFormats/SemanticResultFormats.php 2011-10-25 18:04:07 UTC (rev 100718) @@ -54,9 +54,7 @@ // FIXME: Can be removed when new style magic words are used (introduced in r52503) $wgHooks['LanguageGetMagic'][] = 'SRFParserFunctions::languageGetMagic'; -$wgExtensionFunctions[] = 'efSRFSetup'; - -$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array( +$wgExtensionCredits['semantic'][] = array( 'path' => __FILE__, 'name' => 'Semantic Result Formats', 'version' => SRF_VERSION, @@ -152,24 +150,6 @@ } /** - * Extension initialization hook. - * - * @since 0.5.3 - * - * @return true - */ -function efSRFSetup() { - global $wgVersion; - - // This function has been deprecated in 1.16, but needed for earlier versions. - if ( version_compare( $wgVersion, '1.16', '<' ) ) { - wfLoadExtensionMessages( 'SemanticResultFormats' ); - } - - return true; -} - -/** * Adds a link to Admin Links page. */ function srffAddToAdminLinks( &$admin_links_tree ) { _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs