Return boolean, not a file object
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 16 Jun 2010 21:48:31 +0000 (21:48 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 16 Jun 2010 21:48:31 +0000 (21:48 +0000)
includes/Title.php

index 1b812a8..62a083a 100644 (file)
@@ -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: