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:
Bryan Davis 2016-04-21 14:26:00 -06:00
parent 29bdd0c18e
commit 996b08ae93
2 changed files with 2 additions and 6 deletions

View file

@ -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 = [];

View file

@ -56,7 +56,7 @@
}
},
"ConfigRegistry": {
"TemplateStyles": "TemplateStylesHooks::makeConfig"
"templatestyles": "GlobalVarConfig::newInstance"
}
}