}
if ( !is_null( $oldid ) ) {
- $result_array['revid'] = intval( $oldid );
+ $result_array['revid'] = (int)$oldid;
}
if ( $params['redirects'] && !is_null( $redirValues ) ) {
}
$wgParser->startExternalParse( $titleObj, $popts, Parser::OT_PREPROCESS );
- $xml = $wgParser->preprocessToDom( $this->content->getNativeData() )->__toString();
+ $xml = $wgParser->preprocessToDom( $this->content->getText() )->__toString();
$result_array['parsetree'] = $xml;
$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'parsetree';
}
* This mimicks the behavior of EditPage in formatting a summary
*
* @param Title $title of the page being parsed
- * @param Array $params the API parameters of the request
+ * @param array $params The API parameters of the request
* @return Content|bool
*/
private function formatSummary( $title, $params ) {