http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89507

Revision: 89507
Author:   reedy
Date:     2011-06-05 16:34:09 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
* (bug 28897) rvparse doesn?\226?\128?\153t seem to work with rvsection

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES-1.19
    trunk/phase3/includes/api/ApiParse.php
    trunk/phase3/includes/api/ApiQueryRevisions.php

Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19     2011-06-05 15:12:38 UTC (rev 89506)
+++ trunk/phase3/RELEASE-NOTES-1.19     2011-06-05 16:34:09 UTC (rev 89507)
@@ -95,6 +95,7 @@
 * (bug 29070) Add token to action=watch
 * (bug 29221) Expose oldrevid in watchlist output
 * (bug 29267) always give the servername for meta=siteinfo&siprop=dbrepllag
+* (bug 28897) rvparse doesn’t seem to work with rvsection
 
 === Languages updated in 1.19 ===
 

Modified: trunk/phase3/includes/api/ApiParse.php
===================================================================
--- trunk/phase3/includes/api/ApiParse.php      2011-06-05 15:12:38 UTC (rev 
89506)
+++ trunk/phase3/includes/api/ApiParse.php      2011-06-05 16:34:09 UTC (rev 
89507)
@@ -297,11 +297,11 @@
        }
 
        /**
-        * @param  $articleObj Article
-        * @param  $titleObj Title
-        * @param  $popts ParserOptions
-        * @param  $pageId Int
-        * @param  $getWikitext Bool
+        * @param $articleObj Article
+        * @param $titleObj Title
+        * @param $popts ParserOptions
+        * @param $pageId Int
+        * @param $getWikitext Bool
         * @return ParserOutput
         */
        private function getParsedSectionOrText( $articleObj, $titleObj, 
$popts, $pageId = null, $getWikitext = false ) {

Modified: trunk/phase3/includes/api/ApiQueryRevisions.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryRevisions.php     2011-06-05 15:12:38 UTC 
(rev 89506)
+++ trunk/phase3/includes/api/ApiQueryRevisions.php     2011-06-05 16:34:09 UTC 
(rev 89507)
@@ -482,10 +482,7 @@
                                $text = $wgParser->preprocess( $text, $title, 
new ParserOptions() );
                        }
                        if ( $this->parseContent ) {
-                               $articleObj = new Article( $title );
-
-                               $p_result = $articleObj->getParserOutput();
-                               $text = $p_result->getText();
+                               $text = $wgParser->parse( $text, $title, new 
ParserOptions() )->getText();
                        }
                        ApiResult::setContent( $vals, $text );
                } elseif ( $this->fld_content ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to