From 0aff6df77b3af5fd4c9ddf0775a81b160200aa8a Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 16 Jun 2010 21:48:31 +0000 Subject: [PATCH] Return boolean, not a file object --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 1b812a84ce..62a083a8f1 100644 --- 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: -- 2.20.1