jenkins-bot has submitted this change and it was merged.
Change subject: bug 42649 - PHP Fatal error: Call to a member function
isLocal() on a non-object in Title.php
......................................................................
bug 42649 - PHP Fatal error: Call to a member function isLocal() on a
non-object in Title.php
Change-Id: Ie6027c818785b12f6be9c47caab77ffa4a587a79
---
M includes/Title.php
1 file changed, 5 insertions(+), 3 deletions(-)
Approvals:
CSteipp: Looks good to me, but someone else must approve
Aaron Schulz: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/Title.php b/includes/Title.php
index 4fbe41e..aa8fb93 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/58234
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie6027c818785b12f6be9c47caab77ffa4a587a79
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits