r79602 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79601‎ | r79602 | r79603 >
Date:21:37, 4 January 2011
Author:reedy
Status:ok
Tags:
Comment:
* (bug 25135) add "normalized" to action=parse

Mov addition of $oldid earlier
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiParse.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParse.php
@@ -176,6 +176,13 @@
177177 // Return result
178178 $result = $this->getResult();
179179 $result_array = array();
 180+
 181+ $result_array['title'] = $titleObj->getPrefixedText();
 182+
 183+ if ( !is_null( $oldid ) ) {
 184+ $result_array['revid'] = intval( $oldid );
 185+ }
 186+
180187 if ( $params['redirects'] && !is_null( $redirValues ) ) {
181188 $result_array['redirects'] = $redirValues;
182189 }
@@ -254,10 +261,6 @@
255262 $result_array['iwlinks'] = $this->formatIWLinks( $p_result->getInterwikiLinks() );
256263 }
257264
258 - if ( !is_null( $oldid ) ) {
259 - $result_array['revid'] = intval( $oldid );
260 - }
261 -
262265 $result_mapping = array(
263266 'redirects' => 'r',
264267 'langlinks' => 'll',
Index: trunk/phase3/RELEASE-NOTES
@@ -70,6 +70,7 @@
7171 * (bug 26558) list=allusers auprop=groups does not list groups a user is automatically a member of
7272 * (bug 26559) list=allusers auprop=rights does not match list=users usprop=rights
7373 * (bug 26560) On allusers if limit < total number of users, last user gets duplicate
 74+* (bug 25135) add "normalized" to action=parse
7475
7576 === Languages updated in 1.18 ===
7677

Status & tagging log