Anomie has uploaded a new change for review.

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

Change subject: ApiQueryExtracts: Call setWarning() on $this, not $result
......................................................................

ApiQueryExtracts: Call setWarning() on $this, not $result

Calling it on $result results in the warning looking like it's coming
from the 'result' module rather than 'textextracts'.

Change-Id: I396409c5e1d09385d9b564ca8cf854c899bb1ba4
---
M ApiQueryExtracts.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TextExtracts 
refs/changes/90/171890/1

diff --git a/ApiQueryExtracts.php b/ApiQueryExtracts.php
index 0b5c37c..627dc0c 100644
--- a/ApiQueryExtracts.php
+++ b/ApiQueryExtracts.php
@@ -47,7 +47,7 @@
                $limit = intval( $params['limit'] );
                if ( $limit > 1 && !$params['intro'] ) {
                        $limit = 1;
-                       $result->setWarning( "exlimit was too large for a whole 
article extracts request, lowered to $limit" );
+                       $this->setWarning( "exlimit was too large for a whole 
article extracts request, lowered to $limit" );
                }
                if ( isset( $params['continue'] ) ) {
                        $continue = intval( $params['continue'] );

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

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