mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-13 18:26:59 +00:00
Fix config loading
Change the ConfigRegistry setting in extension.json to the normal GlobalVarConfig factor rather than a local wrapper. Change-Id: I9a1b2869ee13fab59f628e4d5c83188a96062c42
This commit is contained in:
parent
29bdd0c18e
commit
996b08ae93
|
@ -25,10 +25,6 @@ class TemplateStylesHooks {
|
|||
return true;
|
||||
}
|
||||
|
||||
public static function makeConfig() {
|
||||
return new GlobalVarConfig( 'TemplateStyles' );
|
||||
}
|
||||
|
||||
private static function decodeFromBlob( $blob ) {
|
||||
$tree = gzdecode( $blob );
|
||||
if ( $tree ) {
|
||||
|
@ -43,7 +39,7 @@ class TemplateStylesHooks {
|
|||
|
||||
public static function onOutputPageParserOutput( &$out, $parseroutput ) {
|
||||
|
||||
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'TemplateStyles' );
|
||||
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'templatestyles' );
|
||||
$renderer = new CSSRenderer();
|
||||
$pages = [];
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
}
|
||||
},
|
||||
"ConfigRegistry": {
|
||||
"TemplateStyles": "TemplateStylesHooks::makeConfig"
|
||||
"templatestyles": "GlobalVarConfig::newInstance"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue