mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 18:38:18 +00:00
EventDispatcher: Remove reference to $wgWMESchemaEditAttemptStepOversample
At the time of writing, $wgWMESchemaEditAttemptStepOversample is not a global variable in PHP [0]. [0] https://codesearch.wmcloud.org/search/?q=WMESchemaEditAttemptStepOversample Bug: T312016 Change-Id: I6a8abceddc9fce2f28f7a154fa2fc566538ed5e8
This commit is contained in:
parent
2f6305b7b5
commit
50853a3db6
|
@ -406,7 +406,7 @@ class EventDispatcher {
|
|||
PageIdentity $title,
|
||||
UserIdentity $identity
|
||||
): bool {
|
||||
global $wgDTSchemaEditAttemptStepOversample, $wgWMESchemaEditAttemptStepOversample, $wgDBname;
|
||||
global $wgDTSchemaEditAttemptStepOversample, $wgDBname;
|
||||
$context = RequestContext::getMain();
|
||||
$request = $context->getRequest();
|
||||
// We've reached here through Echo's post-save deferredupdate, which
|
||||
|
@ -424,8 +424,7 @@ class EventDispatcher {
|
|||
return false;
|
||||
}
|
||||
$inSample = static::inEventSample( $editingStatsId );
|
||||
$shouldOversample = $wgWMESchemaEditAttemptStepOversample ||
|
||||
( $isDiscussionTools && $wgDTSchemaEditAttemptStepOversample ) || (
|
||||
$shouldOversample = ( $isDiscussionTools && $wgDTSchemaEditAttemptStepOversample ) || (
|
||||
$extensionRegistry->isLoaded( 'WikimediaEvents' ) &&
|
||||
// @phan-suppress-next-line PhanUndeclaredClassMethod
|
||||
\WikimediaEvents\WikimediaEventsHooks::shouldSchemaEditAttemptStepOversample( $context )
|
||||
|
|
Loading…
Reference in a new issue