Merge "Remove functions deprecated since 1.19 from EditPage.php"
[lhc/web/wiklou.git] / includes / EditPage.php
index 7f9e7fc..5aea2fc 100644 (file)
@@ -2504,7 +2504,9 @@ class EditPage {
 
                $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() );
                }