Tweak r41788 - Use findFile() to check current version if $time given
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 7 Oct 2008 02:22:37 +0000 (02:22 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 7 Oct 2008 02:22:37 +0000 (02:22 +0000)
includes/GlobalFunctions.php

index 6546c9f..0c25e05 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()->newFile( $title, $time );
+       return RepoGroup::singleton()->getLocalRepo()->findFile( $title, $time );
 }
 
 /**