TheDJ has uploaded a new change for review. https://gerrit.wikimedia.org/r/141293
Change subject: Toolbar: Only show on WikiText pages ...................................................................... Toolbar: Only show on WikiText pages The toolbar is highly specific to Wikitext anyway. It was already not added to JS and CSS subpages, but still visible on site css/js pages and on Lua pages. This was inconsistent. Ideally at some point, we might want a 'toolbar api' where you can configure a 'toolbar' per content model, but let's first make it consistent and then iterate from there when required. Bug: 29908 Change-Id: If0853e9faf640f93b7030c4937137149d3f08cf5 --- M includes/EditPage.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/93/141293/1 diff --git a/includes/EditPage.php b/includes/EditPage.php index 98e0ec4..1a6a9e5 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2531,7 +2531,9 @@ $wgOut->addHTML( $this->editFormTextBeforeContent ); - if ( !$this->isCssJsSubpage && $showToolbar && $wgUser->getOption( 'showtoolbar' ) ) { + if ( $this->contentModel === 'CONTENT_MODEL_WIKITEXT' + && $showToolbar && $wgUser->getOption( 'showtoolbar' ) ) + { $wgOut->addHTML( EditPage::getEditToolbar() ); } -- To view, visit https://gerrit.wikimedia.org/r/141293 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If0853e9faf640f93b7030c4937137149d3f08cf5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: TheDJ <hartman.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits