Add handy $time parameter to wfLocalFile()
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 7 Oct 2008 00:30:18 +0000 (00:30 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 7 Oct 2008 00:30:18 +0000 (00:30 +0000)
includes/GlobalFunctions.php

index 4c527c8..6546c9f 100644 (file)
@@ -2790,8 +2790,8 @@ function wfFindFile( $title, $time = false, $flags = 0 ) {
  * Get an object referring to a locally registered file.
  * Returns a valid placeholder object if the file does not exist.
  */
-function wfLocalFile( $title ) {
-       return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
+function wfLocalFile( $title, $time = false ) {
+       return RepoGroup::singleton()->getLocalRepo()->newFile( $title, $time );
 }
 
 /**