dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5185b09
)
fix previews
author
Domas Mituzas
<midom@users.mediawiki.org>
Mon, 23 Jan 2006 20:44:56 +0000
(20:44 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Mon, 23 Jan 2006 20:44:56 +0000
(20:44 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
9a5be6b
..
3fcc54c
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-1101,6
+1101,7
@@
END
} else if(preg_match("/\\.js$/", $wgTitle->getText() ) ) {
$previewtext = wfMsg('userjspreview');
}
} 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 );
$parserOutput = $wgParser->parse( $previewtext , $wgTitle, $parserOptions );
$wgOut->addHTML( $parserOutput->mText );
wfProfileOut( $fname );
@@
-1120,7
+1121,7
@@
END
}
if ( $this->mMetaData != "" ) $toparse .= "\n" . $this->mMetaData ;
}
if ( $this->mMetaData != "" ) $toparse .= "\n" . $this->mMetaData ;
-
+ $parserOptions->setTidy(true);
$parserOutput = $wgParser->parse( $this->mArticle->preSaveTransform( $toparse ) ."\n\n",
$wgTitle, $parserOptions );
$parserOutput = $wgParser->parse( $this->mArticle->preSaveTransform( $toparse ) ."\n\n",
$wgTitle, $parserOptions );