r68137 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68136‎ | r68137 | r68138 >
Date:21:48, 16 June 2010
Author:demon
Status:ok
Tags:
Comment:
Return boolean, not a file object
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -3704,7 +3704,7 @@
37053705 switch( $this->mNamespace ) {
37063706 case NS_MEDIA:
37073707 case NS_FILE:
3708 - return wfFindFile( $this ); // file exists, possibly in a foreign repo
 3708+ return (bool)wfFindFile( $this ); // file exists, possibly in a foreign repo
37093709 case NS_SPECIAL:
37103710 return SpecialPage::exists( $this->getDBkey() ); // valid special page
37113711 case NS_MAIN:

Status & tagging log