From: Chad Horohoe Date: Tue, 17 Feb 2009 22:35:36 +0000 (+0000) Subject: Override FileRepo::newFile() when $time is set. See docs on parent. X-Git-Tag: 1.31.0-rc.0~42838 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=88af89dab2fb723b460dca08eabb5e5d8c68c92a;p=lhc%2Fweb%2Fwiklou.git Override FileRepo::newFile() when $time is set. See docs on parent. --- diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 6fc9c46528..23572a4d9d 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -30,6 +30,17 @@ class ForeignAPIRepo extends FileRepo { $this->scriptDirUrl = dirname( $this->mApiBase ); } } + + /** + * Per docs in FileRepo, this needs to return false if we don't support versioned + * files. Well, we don't. + */ + function newFile( $title, $time = false ) { + if ( $time ) { + return false; + } + return parent::newFile( $title, $time ); + } /** * No-ops