Anomie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/205309

Change subject: Further cleanup for core API change
......................................................................

Further cleanup for core API change

PS25 and later changed things around a fair bit, meaning the previous update
needs some further updating. In some cases additional cleanup is also necessary
for future core API changes.

Bug: T96595
Change-Id: If9262c4075a08aa636995eb6dec985439d46b5cb
---
M includes/api/ApiFormatJsonMW.php
1 file changed, 6 insertions(+), 5 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/09/205309/1

diff --git a/includes/api/ApiFormatJsonMW.php b/includes/api/ApiFormatJsonMW.php
index d087043..aa39b4b 100644
--- a/includes/api/ApiFormatJsonMW.php
+++ b/includes/api/ApiFormatJsonMW.php
@@ -38,14 +38,15 @@
                }
 
                if ( defined( 'ApiResult::META_CONTENT' ) ) {
-                       $data = $this->getResult()->getResultData();
-                       $data = ApiResult::transformForBC( $data );
-                       $data = ApiResult::transformForTypes( $data, array( 
'BC' => true ) );
-                       $data = ApiResult::removeMetadata( $data );
+                       $data = $this->getResult()->getResultData( null, array(
+                               'BC' => array(),
+                               'Types' => array(),
+                               'Strip' => 'all',
+                       ) );
                } else {
                        $data = $this->getResultData();
                }
- 
+
                $this->printText(
                        $prefix .
                        FormatJson::encode( $data, $this->getIsHtml() ) .

-- 
To view, visit https://gerrit.wikimedia.org/r/205309
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If9262c4075a08aa636995eb6dec985439d46b5cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>

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

Reply via email to