jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I5f7fa9836ea6b8f8139f241f579c4b94576c6f4a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticWatchlist
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to