From: Sam Reed Date: Tue, 4 Jan 2011 21:37:18 +0000 (+0000) Subject: * (bug 25135) add "normalized" to action=parse X-Git-Tag: 1.31.0-rc.0~32818 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/supprimer.php?a=commitdiff_plain;h=359964eafcebb47433a840e8ec0d27a9514653d7;p=lhc%2Fweb%2Fwiklou.git * (bug 25135) add "normalized" to action=parse Mov addition of $oldid earlier --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b658200506..4fa6b172bc 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -70,6 +70,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 26558) list=allusers auprop=groups does not list groups a user is automatically a member of * (bug 26559) list=allusers auprop=rights does not match list=users usprop=rights * (bug 26560) On allusers if limit < total number of users, last user gets duplicate +* (bug 25135) add "normalized" to action=parse === Languages updated in 1.18 === diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 1a3956b953..cbd5d0b2d2 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -176,6 +176,13 @@ class ApiParse extends ApiBase { // Return result $result = $this->getResult(); $result_array = array(); + + $result_array['title'] = $titleObj->getPrefixedText(); + + if ( !is_null( $oldid ) ) { + $result_array['revid'] = intval( $oldid ); + } + if ( $params['redirects'] && !is_null( $redirValues ) ) { $result_array['redirects'] = $redirValues; } @@ -254,10 +261,6 @@ class ApiParse extends ApiBase { $result_array['iwlinks'] = $this->formatIWLinks( $p_result->getInterwikiLinks() ); } - if ( !is_null( $oldid ) ) { - $result_array['revid'] = intval( $oldid ); - } - $result_mapping = array( 'redirects' => 'r', 'langlinks' => 'll',