jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/350498 )

Change subject: Hooks#EditPageBeforeEditToolbar: Return false so that other 
toolbars aren't loaded
......................................................................


Hooks#EditPageBeforeEditToolbar: Return false so that other toolbars aren't 
loaded

Change-Id: I5e755ef5dffb843368563511044d3123f14dc4bc
---
M WikiEditor.hooks.php
1 file changed, 3 insertions(+), 0 deletions(-)

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



diff --git a/WikiEditor.hooks.php b/WikiEditor.hooks.php
index 70b00fa..fa3266d 100644
--- a/WikiEditor.hooks.php
+++ b/WikiEditor.hooks.php
@@ -277,6 +277,9 @@
                                ],
                                $toolbar
                        );
+                       // Return false to signify that the toolbar has been 
over-written, so
+                       // the old toolbar code shouldn't be added to the page.
+                       return false;
                }
                return true;
        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5e755ef5dffb843368563511044d3123f14dc4bc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiEditor
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to