Andrew-WMDE has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/342245 )
Change subject: Remove conflict warning for users of visual editor
......................................................................
Remove conflict warning for users of visual editor
Bug: T159821
Change-Id: I98912d7097150385a7e946311ffb035d057f88ab
---
M includes/TwoColConflictPage.php
1 file changed, 12 insertions(+), 10 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TwoColConflict
refs/changes/45/342245/1
diff --git a/includes/TwoColConflictPage.php b/includes/TwoColConflictPage.php
index 06bc6de..279a00f 100644
--- a/includes/TwoColConflictPage.php
+++ b/includes/TwoColConflictPage.php
@@ -22,18 +22,20 @@
* @param OutputPage $out
*/
protected function addExplainConflictHeader( OutputPage $out ) {
- $labelAsPublish = $this->context->getConfig()->get(
- 'EditSubmitButtonLabelPublish'
- );
+ if ( $_GET[ 'veswitched' ] !== "1" ) {
+ $labelAsPublish = $this->context->getConfig()->get(
+ 'EditSubmitButtonLabelPublish'
+ );
- $buttonLabel = $this->context->msg(
- $labelAsPublish ? 'publishchanges' : 'savechanges'
- )->text();
+ $buttonLabel = $this->context->msg(
+ $labelAsPublish ? 'publishchanges' :
'savechanges'
+ )->text();
- $out->wrapWikiMsg(
- "<div class='mw-twocolconflict-explainconflict
warningbox'>\n$1\n</div>",
- [ 'twoColConflict-explainconflict', $buttonLabel ]
- );
+ $out->wrapWikiMsg(
+ "<div class='mw-twocolconflict-explainconflict
warningbox'>\n$1\n</div>",
+ [ 'twoColConflict-explainconflict',
$buttonLabel ]
+ );
+ }
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/342245
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I98912d7097150385a7e946311ffb035d057f88ab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TwoColConflict
Gerrit-Branch: master
Gerrit-Owner: Andrew-WMDE <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits