Unknown features shouldn't break style output
If a new feature is added, it should be safe for skins to use it without breaking their backwards compatibility. For example if the normalize feature in 1.36 is being used a skin should be able to use it, and then using version_compare add additional styles for older versions of mediawiki Bug: T271441 Change-Id: I074415970455ef701b48d11ff97c01af24197eeb
This commit is contained in:
parent
e3c1334e8f
commit
381499a675
1 changed files with 2 additions and 1 deletions
|
|
@ -190,7 +190,8 @@ class ResourceLoaderSkinModule extends ResourceLoaderLessVarFileModule {
|
|||
$compatibilityMode = true;
|
||||
}
|
||||
if ( !isset( self::FEATURE_FILES[$feature] ) || !isset( self::DEFAULT_FEATURES[$feature] ) ) {
|
||||
throw new InvalidArgumentException( "Feature `$key` is not recognised" );
|
||||
// We could be an old version of MediaWiki and a new feature is being requested (T271441).
|
||||
continue;
|
||||
}
|
||||
}
|
||||
// If the module didn't specify an option use the default features values.
|
||||
|
|
|
|||
Loading…
Reference in a new issue