Count the number of EditPage edit conflicts
edit.failures.* is already used for: - session_loss - bad_token - incomplete_form hence the choice of metric name. Bug: T120462 Change-Id: I7636cedaf3d589faec3153882f7d1e8ac7054a89
This commit is contained in:
parent
1397863569
commit
98bf111dd2
1 changed files with 3 additions and 0 deletions
|
|
@ -3457,6 +3457,9 @@ HTML
|
|||
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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue