From: Aaron Schulz Date: Sun, 3 Feb 2008 08:10:05 +0000 (+0000) Subject: Partial revert: invalid placeholder X-Git-Tag: 1.31.0-rc.0~49648 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=5b5ed9a986b769df84c455f5de8000b296ea1bf6;p=lhc%2Fweb%2Fwiklou.git Partial revert: invalid placeholder --- 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; }