From: Roan Kattouw Date: Wed, 2 Feb 2011 19:16:05 +0000 (+0000) Subject: Fix regression in r81124, causing &pst to be ignored for the purposees of actually... X-Git-Tag: 1.31.0-rc.0~32249 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=f9942180cbd283b854dcf18457783e47799bd49d;p=lhc%2Fweb%2Fwiklou.git Fix regression in r81124, causing &pst to be ignored for the purposees of actually parsing wikitext --- 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