diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2014-10-27 19:59:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2014-10-27 19:59:03 +0000 |
commit | ccbfb671ec2ec488fcab13fad3478f6e5d689296 (patch) | |
tree | c3b7731fe6e0f5c0ada13fdac5687fd0d40f41ed /includes | |
parent | 31ef64d21cb28304688a594fd35b835d649776f1 (diff) | |
parent | 2ddb67aae732dd647004b2ee367e768459a2c7cb (diff) | |
download | mediawikicore-ccbfb671ec2ec488fcab13fad3478f6e5d689296.tar.gz mediawikicore-ccbfb671ec2ec488fcab13fad3478f6e5d689296.zip |
Merge "Use Parser::OT_PREPROCESS class const"
Diffstat (limited to 'includes')
-rw-r--r-- | includes/api/ApiExpandTemplates.php | 4 | ||||
-rw-r--r-- | includes/api/ApiParse.php | 2 | ||||
-rw-r--r-- | includes/api/ApiQueryRevisions.php | 2 | ||||
-rw-r--r-- | includes/specials/SpecialExpandTemplates.php | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index 93903b52a5b3..6e49d3c94576 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -75,7 +75,7 @@ class ApiExpandTemplates extends ApiBase { $this->logFeatureUsage( 'action=expandtemplates&generatexml' ); } - $wgParser->startExternalParse( $title_obj, $options, OT_PREPROCESS ); + $wgParser->startExternalParse( $title_obj, $options, Parser::OT_PREPROCESS ); $dom = $wgParser->preprocessToDom( $params['text'] ); if ( is_callable( array( $dom, 'saveXML' ) ) ) { $xml = $dom->saveXML(); @@ -96,7 +96,7 @@ class ApiExpandTemplates extends ApiBase { // if they didn't want any output except (probably) the parse tree, // then don't bother actually fully expanding it if ( $prop || $params['prop'] === null ) { - $wgParser->startExternalParse( $title_obj, $options, OT_PREPROCESS ); + $wgParser->startExternalParse( $title_obj, $options, Parser::OT_PREPROCESS ); $frame = $wgParser->getPreprocessor()->newFrame(); $wikitext = $wgParser->preprocess( $params['text'], $title_obj, $options, null, $frame ); if ( $params['prop'] === null ) { diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index d25c87ac19fc..007c6207f5f7 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -376,7 +376,7 @@ class ApiParse extends ApiBase { $this->dieUsage( "generatexml is only supported for wikitext content", "notwikitext" ); } - $wgParser->startExternalParse( $titleObj, $popts, OT_PREPROCESS ); + $wgParser->startExternalParse( $titleObj, $popts, Parser::OT_PREPROCESS ); $dom = $wgParser->preprocessToDom( $this->content->getNativeData() ); if ( is_callable( array( $dom, 'saveXML' ) ) ) { $xml = $dom->saveXML(); diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index d547929a65df..27050ce551e2 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -558,7 +558,7 @@ class ApiQueryRevisions extends ApiQueryBase { $wgParser->startExternalParse( $title, ParserOptions::newFromContext( $this->getContext() ), - OT_PREPROCESS + Parser::OT_PREPROCESS ); $dom = $wgParser->preprocessToDom( $t ); if ( is_callable( array( $dom, 'saveXML' ) ) ) { diff --git a/includes/specials/SpecialExpandTemplates.php b/includes/specials/SpecialExpandTemplates.php index f3adeba33571..aab9c3e5c1ea 100644 --- a/includes/specials/SpecialExpandTemplates.php +++ b/includes/specials/SpecialExpandTemplates.php @@ -77,7 +77,7 @@ class SpecialExpandTemplates extends SpecialPage { $options->setMaxIncludeSize( self::MAX_INCLUDE_SIZE ); if ( $this->generateXML ) { - $wgParser->startExternalParse( $title, $options, OT_PREPROCESS ); + $wgParser->startExternalParse( $title, $options, Parser::OT_PREPROCESS ); $dom = $wgParser->preprocessToDom( $input ); if ( method_exists( $dom, 'saveXML' ) ) { |