From 5b5ed9a986b769df84c455f5de8000b296ea1bf6 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 3 Feb 2008 08:10:05 +0000 Subject: [PATCH] Partial revert: invalid placeholder --- includes/GlobalFunctions.php | 4 ++-- includes/ImagePage.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index ccf7f84dba..3b19ae4442 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2280,8 +2280,8 @@ function wfFindFile( $title, $time = false ) { * Get an object referring to a locally registered file. * Returns a valid placeholder object if the file does not exist. */ -function wfLocalFile( $title, $time = false ) { - return RepoGroup::singleton()->getLocalRepo()->findFile( $title, $time ); +function wfLocalFile( $title ) { + return RepoGroup::singleton()->getLocalRepo()->newFile( $title ); } /** diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 02cfc665e9..84beb565e0 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -23,7 +23,7 @@ class ImagePage extends Article { parent::__construct( $title ); $this->img = wfFindFile( $this->mTitle, $time ); if ( !$this->img ) { - $this->img = wfLocalFile( $this->mTitle, $time ); + $this->img = wfLocalFile( $this->mTitle ); } $this->repo = $this->img->repo; } -- 2.20.1