Jforrester has uploaded a new change for review. (
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiEditor
refs/changes/98/350498/1
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: newchange
Gerrit-Change-Id: I5e755ef5dffb843368563511044d3123f14dc4bc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiEditor
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits