edit.failures.* is already used for:
- session_loss
- bad_token
- incomplete_form
hence the choice of metric name.
Bug: T120462
Change-Id: I7636cedaf3d589faec3153882f7d1e8ac7054a89
global $wgOut;
if ( Hooks::run( 'EditPageBeforeConflictDiff', array( &$this, &$wgOut ) ) ) {
+ $stats = $wgOut->getContext()->getStats();
+ $stats->increment( 'edit.failures.conflict' );
+
$wgOut->wrapWikiMsg( '<h2>$1</h2>', "yourdiff" );
$content1 = $this->toEditContent( $this->textbox1 );