From 5774d5db5f9587f67ad2e124f0b35c8a37c8e22a Mon Sep 17 00:00:00 2001 From: IoannisKydonis Date: Thu, 14 Jan 2016 17:03:21 +0200 Subject: [PATCH] Rename $wgNetworkPerformanceSamplingFactor ... to $wgMediaViewerNetworkPerformanceSamplingFactor. Change-Id: Iba1a25d8c98b7331bfbafd77ead85a3a2ad0f432 --- MultimediaViewerHooks.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MultimediaViewerHooks.php b/MultimediaViewerHooks.php index f62ed631f..d05da2aa5 100644 --- a/MultimediaViewerHooks.php +++ b/MultimediaViewerHooks.php @@ -32,15 +32,15 @@ class MultimediaViewerHooks { protected static $helpLink = '//mediawiki.org/wiki/Special:MyLanguage/Help:Extension:Media_Viewer'; public static function registerExtension() { - global $wgNetworkPerformanceSamplingFactor, $wgMediaViewerDurationLoggingSamplingFactor, + global $wgMediaViewerNetworkPerformanceSamplingFactor, $wgMediaViewerDurationLoggingSamplingFactor, $wgMediaViewerDurationLoggingLoggedinSamplingFactor, $wgMediaViewerAttributionLoggingSamplingFactor, $wgMediaViewerDimensionLoggingSamplingFactor, $wgMediaViewerActionLoggingSamplingFactorMap, $wgMediaViewerIsInBeta, $wgMediaViewerUseThumbnailGuessing, $wgMediaViewerEnableByDefault, $wgMediaViewerEnableByDefaultForAnonymous, $wgMediaViewerImageQueryParameter, $wgMediaViewerRecordVirtualViewBeaconURI; - if ( !isset( $wgNetworkPerformanceSamplingFactor ) ) { + if ( !isset( $wgMediaViewerNetworkPerformanceSamplingFactor ) ) { /** @var int|bool: If set, records image load network performance via EventLogging once per this many requests. False if unset. **/ - $wgNetworkPerformanceSamplingFactor = false; + $wgMediaViewerNetworkPerformanceSamplingFactor = false; } if ( !isset( $wgMediaViewerDurationLoggingSamplingFactor ) ) { @@ -283,7 +283,7 @@ class MultimediaViewerHooks { * @return bool */ public static function resourceLoaderGetConfigVars( &$vars ) { - global $wgMediaViewerActionLoggingSamplingFactorMap, $wgNetworkPerformanceSamplingFactor, + global $wgMediaViewerActionLoggingSamplingFactorMap, $wgMediaViewerNetworkPerformanceSamplingFactor, $wgMediaViewerDurationLoggingSamplingFactor, $wgMediaViewerDurationLoggingLoggedinSamplingFactor, $wgMediaViewerAttributionLoggingSamplingFactor, $wgMediaViewerDimensionLoggingSamplingFactor, $wgMediaViewerIsInBeta, $wgMediaViewerUseThumbnailGuessing, $wgMediaViewerImageQueryParameter, @@ -296,7 +296,7 @@ class MultimediaViewerHooks { 'useThumbnailGuessing' => (bool)$wgMediaViewerUseThumbnailGuessing, 'durationSamplingFactor' => $wgMediaViewerDurationLoggingSamplingFactor, 'durationSamplingFactorLoggedin' => $wgMediaViewerDurationLoggingLoggedinSamplingFactor, - 'networkPerformanceSamplingFactor' => $wgNetworkPerformanceSamplingFactor, + 'networkPerformanceSamplingFactor' => $wgMediaViewerNetworkPerformanceSamplingFactor, 'actionLoggingSamplingFactorMap' => $wgMediaViewerActionLoggingSamplingFactorMap, 'attributionSamplingFactor' => $wgMediaViewerAttributionLoggingSamplingFactor, 'dimensionSamplingFactor' => $wgMediaViewerDimensionLoggingSamplingFactor,