Index: trunk/extensions/SemanticResultFormats/SemanticResultFormats.php |
— | — | @@ -54,9 +54,7 @@ |
55 | 55 | // FIXME: Can be removed when new style magic words are used (introduced in r52503) |
56 | 56 | $wgHooks['LanguageGetMagic'][] = 'SRFParserFunctions::languageGetMagic'; |
57 | 57 | |
58 | | -$wgExtensionFunctions[] = 'efSRFSetup'; |
59 | | - |
60 | | -$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array( |
| 58 | +$wgExtensionCredits['semantic'][] = array( |
61 | 59 | 'path' => __FILE__, |
62 | 60 | 'name' => 'Semantic Result Formats', |
63 | 61 | 'version' => SRF_VERSION, |
— | — | @@ -152,24 +150,6 @@ |
153 | 151 | } |
154 | 152 | |
155 | 153 | /** |
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 | | -/** |
174 | 154 | * Adds a link to Admin Links page. |
175 | 155 | */ |
176 | 156 | function srffAddToAdminLinks( &$admin_links_tree ) { |