Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -210,13 +210,17 @@ |
211 | 211 | * @return array |
212 | 212 | */ |
213 | 213 | public static function getExtensionTypes() { |
214 | | - return array( |
| 214 | + $extensionTypes = array( |
215 | 215 | 'specialpage' => wfMsg( 'version-specialpages' ), |
216 | 216 | 'parserhook' => wfMsg( 'version-parserhooks' ), |
217 | 217 | 'variable' => wfMsg( 'version-variables' ), |
218 | 218 | 'media' => wfMsg( 'version-mediahandlers' ), |
219 | 219 | 'other' => wfMsg( 'version-other' ), |
220 | 220 | ); |
| 221 | + |
| 222 | + wfRunHooks( 'ExtensionTypes', array( &$extensionTypes ) ); |
| 223 | + |
| 224 | + return $extensionTypes; |
221 | 225 | } |
222 | 226 | |
223 | 227 | /** |
— | — | @@ -233,6 +237,9 @@ |
234 | 238 | |
235 | 239 | $extensionTypes = self::getExtensionTypes(); |
236 | 240 | |
| 241 | + /** |
| 242 | + * @deprecated as of 1.17, use hook ExtensionTypes instead. |
| 243 | + */ |
237 | 244 | wfRunHooks( 'SpecialVersionExtensionTypes', array( &$this, &$extensionTypes ) ); |
238 | 245 | |
239 | 246 | $out = Xml::element( 'h2', array( 'id' => 'mw-version-ext' ), wfMsg( 'version-extensions' ) ) . |