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:
d2a5b4c
)
better check before commit..
author
Gabriel Wicke
<gwicke@users.mediawiki.org>
Thu, 27 May 2004 14:16:02 +0000
(14:16 +0000)
committer
Gabriel Wicke
<gwicke@users.mediawiki.org>
Thu, 27 May 2004 14:16:02 +0000
(14:16 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
3c4176e
..
3cb0df7
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-367,10
+367,10
@@
class EditPage {
} else if(preg_match("/\\.js$/", $wgTitle->getText() ) ) {
$previewtext = wfMsg('userjspreview');
}
} else if(preg_match("/\\.js$/", $wgTitle->getText() ) ) {
$previewtext = wfMsg('userjspreview');
}
- $parserOutput = $wgParser->parse( $
this->textbox1
, $wgTitle, $parserOptions );
+ $parserOutput = $wgParser->parse( $
previewtext
, $wgTitle, $parserOptions );
$wgOut->addHTML( $parserOutput->mText );
} else {
$wgOut->addHTML( $parserOutput->mText );
} else {
- $parserOutput = $wgParser->parse( $this->mArticle->preSaveTransform( $
previewtext
) ."\n\n",
+ $parserOutput = $wgParser->parse( $this->mArticle->preSaveTransform( $
this->textbox1
) ."\n\n",
$wgTitle, $parserOptions );
$previewHTML = $parserOutput->mText;
$wgTitle, $parserOptions );
$previewHTML = $parserOutput->mText;