mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-09-23 10:21:11 +00:00
Use $config instead of $conf for consistency purposes
So $config is used instead of $conf for consistency and this is how it's used across many many Wikimedia repos (exts) and even in core. Change-Id: Ia8e7335bf6892628e0a8b5d901776d726a8ad743
This commit is contained in:
parent
1180a80ee5
commit
523f207ccd
|
@ -106,14 +106,14 @@ class PopupsHooks {
|
|||
* @param array &$vars Array of variables to be added into the output of the startup module
|
||||
*/
|
||||
public static function onResourceLoaderGetConfigVars( array &$vars ) {
|
||||
/** @var \Config $conf */
|
||||
$conf = MediaWikiServices::getInstance()->getService( 'Popups.Config' );
|
||||
$vars['wgPopupsVirtualPageViews'] = $conf->get( 'PopupsVirtualPageViews' );
|
||||
$vars['wgPopupsGateway'] = $conf->get( 'PopupsGateway' );
|
||||
$vars['wgPopupsEventLogging'] = $conf->get( 'PopupsEventLogging' );
|
||||
$vars['wgPopupsRestGatewayEndpoint'] = $conf->get( 'PopupsRestGatewayEndpoint' );
|
||||
$vars['wgPopupsReferencePreviews'] = $conf->get( 'PopupsReferencePreviews' );
|
||||
$vars['wgPopupsStatsvSamplingRate'] = $conf->get( 'PopupsStatsvSamplingRate' );
|
||||
/** @var \Config $config */
|
||||
$config = MediaWikiServices::getInstance()->getService( 'Popups.Config' );
|
||||
$vars['wgPopupsVirtualPageViews'] = $config->get( 'PopupsVirtualPageViews' );
|
||||
$vars['wgPopupsGateway'] = $config->get( 'PopupsGateway' );
|
||||
$vars['wgPopupsEventLogging'] = $config->get( 'PopupsEventLogging' );
|
||||
$vars['wgPopupsRestGatewayEndpoint'] = $config->get( 'PopupsRestGatewayEndpoint' );
|
||||
$vars['wgPopupsReferencePreviews'] = $config->get( 'PopupsReferencePreviews' );
|
||||
$vars['wgPopupsStatsvSamplingRate'] = $config->get( 'PopupsStatsvSamplingRate' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue