Fix regression in r81124, causing &pst to be ignored for the purposees of actually...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 2 Feb 2011 19:16:05 +0000 (19:16 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 2 Feb 2011 19:16:05 +0000 (19:16 +0000)
includes/api/ApiParse.php

index 8fe7cc3..012a83b 100644 (file)
@@ -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