From: Reedy Date: Fri, 19 Oct 2012 23:17:59 +0000 (+0100) Subject: A few more for bug 41122 X-Git-Tag: 1.31.0-rc.0~21938 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=6bbe4076e1fcc3b638c2fa727ef2486596455514;p=lhc%2Fweb%2Fwiklou.git A few more for bug 41122 Change-Id: I756067c8e40eafff87f8f448a9e037228afd3bf3 --- diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index b8e0233af6..1a55d5a16b 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -153,7 +153,6 @@ class ApiParse extends ApiBase { $oldid = $pageObj->getLatest(); } - $popts = $pageObj->makeParserOptions( $this->getContext() ); $popts->enableLimitReport( !$params['disablepp'] ); @@ -204,9 +203,9 @@ class ApiParse extends ApiBase { // Not cached (save or load) if ( $params['pst'] ) { - $p_result = $this->pstContent->getParserOutput( $titleObj, $popts ); + $p_result = $this->pstContent->getParserOutput( $titleObj, null, $popts ); } else { - $p_result = $this->content->getParserOutput( $titleObj, $popts ); + $p_result = $this->content->getParserOutput( $titleObj, null, $popts ); } } @@ -360,7 +359,7 @@ class ApiParse extends ApiBase { !is_null( $pageId ) ? 'page id ' . $pageId : $page->getTitle()->getText() ); // Not cached (save or load) - return $this->content->getParserOutput( $page->getTitle(), $popts ); + return $this->content->getParserOutput( $page->getTitle(), null, $popts ); } else { // Try the parser cache first // getParserOutput will save to Parser cache if able