Tpt has submitted this change and it was merged.

Change subject: Update code to match MWSearch updates, fixing fatal
......................................................................


Update code to match MWSearch updates, fixing fatal

PHP Fatal error:  Call to undefined method Status::next() in 
/usr/local/apache/common-local/php-1.22wmf3/extensions/ProofreadPage/SpecialProofreadPages.php
 on line 83

Change-Id: I0b6a49ae8008351ff0c86110009766a36b8dd778
---
M SpecialProofreadPages.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Tpt: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/SpecialProofreadPages.php b/SpecialProofreadPages.php
index 4143a06..0df6cd6 100644
--- a/SpecialProofreadPages.php
+++ b/SpecialProofreadPages.php
@@ -75,7 +75,9 @@
                                $searchEngine->setNamespaces( array( 
$indexNamespaceId ) );
                                $searchEngine->showRedirects = false;
                                $textMatches = $searchEngine->searchText( 
$this->searchTerm );
-                               if( $textMatches === null) {
+                               if( !( $textMatches instanceof SearchResultSet 
) ) {
+                                       // TODO: $searchEngine->searchText() 
can return status objects
+                                       // Might want to extract some 
information from them
                                        global $wgOut;
                                        $wgOut->showErrorPage( 
'proofreadpage_specialpage_searcherror', 
'proofreadpage_specialpage_searcherrortext' );
                                } else {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0b6a49ae8008351ff0c86110009766a36b8dd778
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Tpt <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to