MarkAHershberger has uploaded a new change for review.

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


Change subject: PHP Fatal error: Call to a member function isLocal() on a 
non-object in Title.php
......................................................................

PHP Fatal error: Call to a member function isLocal() on a non-object in 
Title.php

Change-Id: Ie6027c818785b12f6be9c47caab77ffa4a587a79
Bug: 42649
---
M RELEASE-NOTES-1.21
M includes/Title.php
2 files changed, 8 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/02/59102/1

diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21
index adcf26f..e43325b 100644
--- a/RELEASE-NOTES-1.21
+++ b/RELEASE-NOTES-1.21
@@ -122,6 +122,9 @@
   quotmarks, order and whitespace in the attribute list).
 
 === Bug fixes in 1.21 ===
+* (bug 42649) PHP Fatal error: Call to a member function isLocal() on a
+  non-object in Title.php
+* (bug 46787) API: Fix rccontinue handling
 * (bug 46719) Remove link to Special:ActiveUsers from Special:Statistics
 * (bug 46493) Special:ProtectedPages results in whitepage when a bad title is 
protected
 * (bug 40617) Installer can now customize the logo in LocalSettings.php
diff --git a/includes/Title.php b/includes/Title.php
index e81023a..e502dcc 100644
--- a/includes/Title.php
+++ b/includes/Title.php
@@ -575,10 +575,12 @@
         */
        public function isLocal() {
                if ( $this->mInterwiki != '' ) {
-                       return Interwiki::fetch( $this->mInterwiki )->isLocal();
-               } else {
-                       return true;
+                       $iw = Interwiki::fetch( $this->mInterwiki );
+                       if ( $iw ) {
+                               return $iw->isLocal();
+                       }
                }
+               return true;
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6027c818785b12f6be9c47caab77ffa4a587a79
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_21
Gerrit-Owner: MarkAHershberger <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>

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

Reply via email to