From 56fac0c47d9edcd66774d3e5671c8fc7eba60f9b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 7 Oct 2008 02:22:37 +0000 Subject: [PATCH] Tweak r41788 - Use findFile() to check current version if $time given --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 6546c9f4c3..0c25e05c3d 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()->newFile( $title, $time ); + return RepoGroup::singleton()->getLocalRepo()->findFile( $title, $time ); } /** -- 2.20.1