dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da009ed
)
Return boolean, not a file object
author
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 16 Jun 2010 21:48:31 +0000
(21:48 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 16 Jun 2010 21:48:31 +0000
(21:48 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
1b812a8
..
62a083a
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-3704,7
+3704,7
@@
class Title {
switch( $this->mNamespace ) {
case NS_MEDIA:
case NS_FILE:
- return wfFindFile( $this ); // file exists, possibly in a foreign repo
+ return
(bool)
wfFindFile( $this ); // file exists, possibly in a foreign repo
case NS_SPECIAL:
return SpecialPage::exists( $this->getDBkey() ); // valid special page
case NS_MAIN: