dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
3d70637
)
Merge "bug 42649 - PHP Fatal error: Call to a member function isLocal() on a non...
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Mon, 8 Apr 2013 23:19:55 +0000
(23:19 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Mon, 8 Apr 2013 23:19:55 +0000
(23:19 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
4fbe41e
..
aa8fb93
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-575,10
+575,12
@@
class Title {
*/
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;
}
/**