From: Magnus Manske Date: Sat, 31 Jul 2004 15:42:29 +0000 (+0000) Subject: Article validation code (article preview on validation page) X-Git-Tag: 1.5.0alpha1~2556 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=6b4da8da8eed1865786032e541fb81c3680be8fa;p=lhc%2Fweb%2Fwiklou.git Article validation code (article preview on validation page) --- diff --git a/includes/SpecialValidate.php b/includes/SpecialValidate.php index 94199b02d7..1e78b5bd31 100644 --- a/includes/SpecialValidate.php +++ b/includes/SpecialValidate.php @@ -208,7 +208,16 @@ class Validation $html .= "" ; $html .= "\n" ; } - return $html ; + + global $wgArticle ; + $html .= "

" . wfMsg ( 'preview' ) . "

" ; + $wgOut->addHTML ( $html ) ; + $wgOut->addWikiText ( $wgArticle->getContent( true ) ) ; + return "" ; + +# $html .= $wgArticle->getContent( true ) ; +# $html .= $wgArticle->view () ; +# return $html ; } function getData ( $user = -1 , $title = "" , $type = -1 )