From: addshore Date: Fri, 20 May 2016 10:26:53 +0000 (+0100) Subject: Count subject and talk page conflict separately X-Git-Tag: 1.31.0-rc.0~6534^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=0358d19562d66258f7d0f858a2c9a7e774b4a2f8;p=lhc%2Fweb%2Fwiklou.git Count subject and talk page conflict separately Bug: T136547 Change-Id: If8b3dcd1d97f72058d281602242d2c44c38a48d0 --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 7fb71f7291..2a80ea68d8 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3513,6 +3513,14 @@ HTML if ( Hooks::run( 'EditPageBeforeConflictDiff', [ &$this, &$wgOut ] ) ) { $stats = $wgOut->getContext()->getStats(); $stats->increment( 'edit.failures.conflict' ); + if ( $this->mTitle->isTalkPage() ) { + $stats->increment( 'edit.failures.conflict.byType.talk' ); + } else { + $stats->increment( 'edit.failures.conflict.byType.subject' ); + } + if ( $this->mTitle->getNamespace() === NS_PROJECT ) { + $stats->increment( 'edit.failures.conflict.byNamespace.project' ); + } $wgOut->wrapWikiMsg( '

$1

', "yourdiff" );