r47387 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47386‎ | r47387 | r47388 >
Date:22:35, 17 February 2009
Author:demon
Status:deferred
Tags:
Comment:
Override FileRepo::newFile() when $time is set. See docs on parent.
Modified paths:
  • /trunk/phase3/includes/filerepo/ForeignAPIRepo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php
@@ -30,6 +30,17 @@
3131 $this->scriptDirUrl = dirname( $this->mApiBase );
3232 }
3333 }
 34+
 35+ /**
 36+ * Per docs in FileRepo, this needs to return false if we don't support versioned
 37+ * files. Well, we don't.
 38+ */
 39+ function newFile( $title, $time = false ) {
 40+ if ( $time ) {
 41+ return false;
 42+ }
 43+ return parent::newFile( $title, $time );
 44+ }
3445
3546 /**
3647 * No-ops

Status & tagging log