Revert r41792, broke uploads. Note that RepoGroup::findFile() returns false if no...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 7 Oct 2008 20:14:55 +0000 (20:14 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 7 Oct 2008 20:14:55 +0000 (20:14 +0000)
includes/GlobalFunctions.php

index 0c25e05..6546c9f 100644 (file)
@@ -2791,7 +2791,7 @@ function wfFindFile( $title, $time = false, $flags = 0 ) {
  * Returns a valid placeholder object if the file does not exist.
  */
 function wfLocalFile( $title, $time = false ) {
-       return RepoGroup::singleton()->getLocalRepo()->findFile( $title, $time );
+       return RepoGroup::singleton()->getLocalRepo()->newFile( $title, $time );
 }
 
 /**