From a8925f97471072e0f86609f461f5d31f97b41df5 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 7 Oct 2008 20:14:55 +0000 Subject: [PATCH] Revert r41792, broke uploads. Note that RepoGroup::findFile() returns false if no file was found, which might be the case when uploading new files ;) (see bug 15883) --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 0c25e05c3d..6546c9f4c3 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 ); } /** -- 2.20.1