apply CSS::Janus when user preview its CSS style
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 22 Dec 2011 13:35:37 +0000 (13:35 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 22 Dec 2011 13:35:37 +0000 (13:35 +0000)
follow up r94421

includes/OutputPage.php

index ffe36db..bff481e 100644 (file)
@@ -3187,7 +3187,7 @@ $templates
                                        array( 'excludepage' => $this->getTitle()->getPrefixedDBkey() )
                                );
                                // Load the previewed CSS
-                               $otherTags .= Html::inlineStyle( $this->getRequest()->getText( 'wpTextbox1' ) );
+                               $this->addInlineStyle( $this->getRequest()->getText( 'wpTextbox1' ) );
                        } else {
                                // Load the user styles normally
                                $moduleStyles[] = 'user';