jenkins-bot has submitted this change and it was merged.

Change subject: Don't override other content added to the edit page
......................................................................


Don't override other content added to the edit page

Per the comment in EditPage.php:
extensions should take care to _append_ to the present value

Change-Id: Icaf3f250b5f65768e50b7983b5f018c38a13490a
---
M common/Hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Anomie: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/common/Hooks.php b/common/Hooks.php
index 9bc2954..4275e0b 100644
--- a/common/Hooks.php
+++ b/common/Hooks.php
@@ -257,7 +257,7 @@
                if ( $editor->getTitle()->hasContentModel( 
CONTENT_MODEL_SCRIBUNTO ) ) {
                        global $wgOut;
                        $wgOut->addModules( 'ext.scribunto.edit' );
-                       $editor->editFormTextAfterTools = '<div 
id="mw-scribunto-console"></div>';
+                       $editor->editFormTextAfterTools .= '<div 
id="mw-scribunto-console"></div>';
                }
                return true;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/233595
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icaf3f250b5f65768e50b7983b5f018c38a13490a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Scribunto
Gerrit-Branch: master
Gerrit-Owner: TheDJ <hartman.w...@gmail.com>
Gerrit-Reviewer: Anomie <bjor...@wikimedia.org>
Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to