Manybubbles has uploaded a new change for review.

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

Change subject: Stop tracing redirects on invalid content
......................................................................

Stop tracing redirects on invalid content

Bug: 68558
Change-Id: I91f7ae0d24a6977f05fc316bec5a1dbd49f7e75e
---
M includes/Updater.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/97/149297/1

diff --git a/includes/Updater.php b/includes/Updater.php
index eab7213..2660792 100644
--- a/includes/Updater.php
+++ b/includes/Updater.php
@@ -118,6 +118,10 @@
                        if ( is_string( $content ) ) {
                                $content = new TextContent( $content );
                        }
+                       // If the event that the content is _still_ not usable, 
we have to give up.
+                       if ( !is_object( $content ) ) {
+                               return array( null, $redirects );
+                       }
 
                        // Add the page to the list of updated pages before we 
start trying to update to catch redirect loops.
                        $this->updated[] = $titleText;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I91f7ae0d24a6977f05fc316bec5a1dbd49f7e75e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>

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

Reply via email to