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

Change subject: Replace deprecated ApiResult method calls
......................................................................


Replace deprecated ApiResult method calls

These were deprecated since 1.25, you must have missed the warnings
somehow when you were cleaning this up after importing it from SVN later
on.

Change-Id: I836f9a47510b6e0d51c06421349fc80c851f656a
---
M ShoutWikiListApi.php
1 file changed, 3 insertions(+), 3 deletions(-)

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



diff --git a/ShoutWikiListApi.php b/ShoutWikiListApi.php
index 38b6a9e..b248d47 100644
--- a/ShoutWikiListApi.php
+++ b/ShoutWikiListApi.php
@@ -104,7 +104,7 @@
 
                        if ( $row ) {
                                $data['count'] = $row->cnt;
-                               ApiResult::setContent( $data, $row->cnt );
+                               ApiResult::setContentValue( $data, 'content', 
$row->cnt );
                        }
 
                        $this->getResult()->setIndexedTagName( $data, 'wiki' );
@@ -157,7 +157,7 @@
                                if ( $userIsStaff ) {
                                        $data[$wid]['type'] = $wikiType;
                                }
-                               ApiResult::setContent( $data[$wid], '' );
+                               ApiResult::setContentValue( $data[$wid], 
'content', '' );
 
                                // query-continue parameter support
                                $fit = $result->addValue( array( 'query', 
$this->getModuleName() ), null, $data[$wid] );
@@ -168,7 +168,7 @@
                                // end query-continue stuff
                        }
 
-                       $result->setIndexedTagName_internal( array( 'query', 
$this->getModuleName() ), 'wiki' );
+                       $result->addIndexedTagName( array( 'query', 
$this->getModuleName() ), 'wiki' );
                }
        }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I836f9a47510b6e0d51c06421349fc80c851f656a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ShoutWikiAPI
Gerrit-Branch: master
Gerrit-Owner: Anomie <bjor...@wikimedia.org>
Gerrit-Reviewer: Jack Phoenix <j...@countervandalism.net>
Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org>
Gerrit-Reviewer: Reedy <re...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to