Use the old way of checking browser support for MW < 1.22

Bug: 52322
Change-Id: I346c1119b2ae841b3dbb2e7b8a5a2d924269b150
This commit is contained in:
Amir E. Aharoni
2013-08-22 09:32:59 +03:00
parent 00e248e1f9
commit 7330295ce2

View File

@@ -224,6 +224,12 @@
'msie': [['<=', 7]] 'msie': [['<=', 7]]
}; };
// jquery.client changed in MediaWiki 1.22.
// FIXME: Remove when ULS minimum MW version is 1.22.
if ( parseInt( mw.config.get( 'wgVersion' ).split( '.' )[1], '10' ) < 22 ) {
return !/MSIE [67]/i.test( navigator.userAgent );
}
return !$.client.test( blacklist, null, true ); return !$.client.test( blacklist, null, true );
} }