From 6b4da8da8eed1865786032e541fb81c3680be8fa Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Sat, 31 Jul 2004 15:42:29 +0000 Subject: [PATCH] Article validation code (article preview on validation page) --- includes/SpecialValidate.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ) -- 2.20.1