From f9942180cbd283b854dcf18457783e47799bd49d Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 2 Feb 2011 19:16:05 +0000 Subject: [PATCH] Fix regression in r81124, causing &pst to be ignored for the purposees of actually parsing wikitext --- includes/api/ApiParse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 8fe7cc3fff..012a83baca 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -185,7 +185,7 @@ class ApiParse extends ApiBase { $this->getResult()->addValue( null, $this->getModuleName(), $result_array ); return; } - $p_result = $wgParser->parse( $this->text, $titleObj, $popts ); + $p_result = $wgParser->parse( $params['pst'] ? $this->pstText : $this->text, $titleObj, $popts ); } // Return result -- 2.20.1