Drop support for MW 1.40
Bug: T369064 Change-Id: Id3dde7df0fe963a35c68ff5b6bdf56a268eacc6e
This commit is contained in:
@@ -153,15 +153,9 @@ class Hooks implements
|
||||
* @param OutputPage $out
|
||||
*/
|
||||
private function loadCodexStyles( OutputPage $out ) {
|
||||
if ( version_compare( MW_VERSION, '1.41', '<' ) ) {
|
||||
// codex-search-styles was added in 1.41 so in older versions for MLEB support
|
||||
// we load the full module.
|
||||
$out->addModuleStyles( '@wikimedia/codex' );
|
||||
} else {
|
||||
// Only needed for skins that do not load Codex.
|
||||
if ( !in_array( $out->getSkin()->getSkinName(), [ 'minerva', 'vector-2022' ] ) ) {
|
||||
$out->addModuleStyles( 'codex-search-styles' );
|
||||
}
|
||||
// Only needed for skins that do not load Codex.
|
||||
if ( !in_array( $out->getSkin()->getSkinName(), [ 'minerva', 'vector-2022' ] ) ) {
|
||||
$out->addModuleStyles( 'codex-search-styles' );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user