Remove support for MediaWiki 1.29 and earlier
extension.json already requires "MediaWiki": ">= 1.30.0". Change-Id: Ic460e6364967cd7b0367e66f613077c424bd8f19
This commit is contained in:
@@ -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'] = [
|
||||
|
||||
Reference in New Issue
Block a user