X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiParse.php;h=2e7db78327135c0243e1fe81627fe0e0288d59e5;hp=a7390e617a05fb95e55bd0603df76cdeeacaec8b;hb=a1ef77b2d80830fbcb617a83961d78cff9d6e384;hpb=0854352fa75ce1cd77bf3c28905477c6d7c66509 diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index a7390e617a..2e7db78327 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -21,7 +21,7 @@ */ use MediaWiki\MediaWikiServices; -use MediaWiki\Storage\RevisionRecord; +use MediaWiki\Revision\RevisionRecord; /** * @ingroup API @@ -491,6 +491,7 @@ class ApiParse extends ApiBase { $parser = MediaWikiServices::getInstance()->getParser(); $parser->startExternalParse( $titleObj, $popts, Parser::OT_PREPROCESS ); + // @phan-suppress-next-line PhanUndeclaredMethod $xml = $parser->preprocessToDom( $this->content->getText() )->__toString(); $result_array['parsetree'] = $xml; $result_array[ApiResult::META_BC_SUBELEMENTS][] = 'parsetree';