From: Aaron Schulz Date: Tue, 7 Oct 2008 00:30:18 +0000 (+0000) Subject: Add handy $time parameter to wfLocalFile() X-Git-Tag: 1.31.0-rc.0~44859 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=ff4db4a3eb1b6b2d24927648cb609cfb974fb82f;p=lhc%2Fweb%2Fwiklou.git Add handy $time parameter to wfLocalFile() --- 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 ); } /**