Anomie has uploaded a new change for review.

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

Change subject: Avoid using long-deprecated ApiBase::getResultData()
......................................................................

Avoid using long-deprecated ApiBase::getResultData()

Change-Id: I5f7fa9836ea6b8f8139f241f579c4b94576c6f4a
---
M specials/SpecialSemanticWatchlist.php
1 file changed, 9 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticWatchlist 
refs/changes/95/313595/1

diff --git a/specials/SpecialSemanticWatchlist.php 
b/specials/SpecialSemanticWatchlist.php
index 5312518..1e56201 100644
--- a/specials/SpecialSemanticWatchlist.php
+++ b/specials/SpecialSemanticWatchlist.php
@@ -299,7 +299,15 @@
 
                $api = new ApiMain( new FauxRequest( $requestData, true ), true 
);
                $api->execute();
-               return $api->getResultData();
+               if ( defined( 'ApiResult::META_CONTENT' ) ) {
+                       return $api->getResult()->getResultData( null, array(
+                               'BC' => array(),
+                               'Types' => array(),
+                               'Strip' => 'all',
+                       ) );
+               } else {
+                       return $api->getResultData();
+               }
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f7fa9836ea6b8f8139f241f579c4b94576c6f4a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticWatchlist
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