Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php |
— | — | @@ -30,6 +30,17 @@ |
31 | 31 | $this->scriptDirUrl = dirname( $this->mApiBase ); |
32 | 32 | } |
33 | 33 | } |
| 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 | + } |
34 | 45 | |
35 | 46 | /** |
36 | 47 | * No-ops |