r46819 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46818‎ | r46819 | r46820 >
Date:22:12, 4 February 2009
Author:catrope
Status:deferred
Tags:
Comment:
API: Tweak the format for &export to be more XML-friendly. Not a breaking change since &export hasn't gone live yet anyway
Modified paths:
  • /trunk/phase3/includes/api/ApiQuery.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuery.php
@@ -373,8 +373,11 @@
374374 // Raw formatter will handle this
375375 $result->addValue(null, 'text', $exportxml);
376376 $result->addValue(null, 'mime', 'text/xml');
377 - } else
378 - $result->addValue('query', 'export', $exportxml);
 377+ } else {
 378+ $r = array();
 379+ ApiResult::setContent($r, $exportxml);
 380+ $result->addValue('query', 'export', $r);
 381+ }
379382 }
380383 }
381384 }

Status & tagging log