Bug: T136547
Change-Id: If8b3dcd1d97f72058d281602242d2c44c38a48d0
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( '<h2>$1</h2>', "yourdiff" );