From: Domas Mituzas Date: Mon, 23 Jan 2006 20:44:56 +0000 (+0000) Subject: fix previews X-Git-Tag: 1.6.0~436 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=c2d5bc9e0e4c3d5acc85c0bff8fd8473813022ba;p=lhc%2Fweb%2Fwiklou.git fix previews --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 9a5be6b455..3fcc54ce72 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1101,6 +1101,7 @@ END } else if(preg_match("/\\.js$/", $wgTitle->getText() ) ) { $previewtext = wfMsg('userjspreview'); } + $parserOptions->setTidy(true); $parserOutput = $wgParser->parse( $previewtext , $wgTitle, $parserOptions ); $wgOut->addHTML( $parserOutput->mText ); wfProfileOut( $fname ); @@ -1120,7 +1121,7 @@ END } if ( $this->mMetaData != "" ) $toparse .= "\n" . $this->mMetaData ; - + $parserOptions->setTidy(true); $parserOutput = $wgParser->parse( $this->mArticle->preSaveTransform( $toparse ) ."\n\n", $wgTitle, $parserOptions );