Remove support for MediaWiki 1.29 and earlier

extension.json already requires "MediaWiki": ">= 1.30.0".

Change-Id: Ic460e6364967cd7b0367e66f613077c424bd8f19
This commit is contained in:
Fomafix
2018-08-31 16:42:22 +02:00
committed by jenkins-bot
parent 137fb70a75
commit 72fb42cdba
4 changed files with 7 additions and 43 deletions

View File

@@ -462,7 +462,7 @@ class UniversalLanguageSelectorHooks {
* @param ResourceLoader $resourceLoader
*/
public static function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ) {
global $wgULSEventLogging, $wgVersion;
global $wgULSEventLogging;
$modules = [];
$modules['ext.uls.compactlinks'] = [
@@ -482,10 +482,6 @@ class UniversalLanguageSelectorHooks {
'localBasePath' => __DIR__ . '/resources',
'remoteExtPath' => 'UniversalLanguageSelector/resources'
];
if ( version_compare( $wgVersion, '1.29', '<' ) ) {
// Support: MediaWiki 1.28 and earlier (T162590)
$modules['ext.uls.compactlinks']['dependencies'][] = 'es5-shim';
}
if ( $wgULSEventLogging ) {
$modules['ext.uls.eventlogger'] = [