From ff4db4a3eb1b6b2d24927648cb609cfb974fb82f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 7 Oct 2008 00:30:18 +0000 Subject: [PATCH] Add handy $time parameter to wfLocalFile() --- includes/GlobalFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 4c527c8115..6546c9f4c3 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 ); } /** -- 2.20.1