From 264d6e3cc37d8d96141beb72830e6e2086253856 Mon Sep 17 00:00:00 2001 From: Russ Nelson Date: Mon, 23 May 2011 02:30:20 +0000 Subject: [PATCH] Fill-in missing implementations of abstract function appendFinish() --- includes/filerepo/FSRepo.php | 3 +++ includes/filerepo/ForeignAPIRepo.php | 3 +++ includes/filerepo/NullRepo.php | 3 +++ 3 files changed, 9 insertions(+) diff --git a/includes/filerepo/FSRepo.php b/includes/filerepo/FSRepo.php index d3741171b1..a41c04efec 100644 --- a/includes/filerepo/FSRepo.php +++ b/includes/filerepo/FSRepo.php @@ -328,6 +328,9 @@ class FSRepo extends FileRepo { return $status; } + /* We can actually append to the files, so no-op needed here. */ + function appendFinish( $toAppendPath ) {} + /** * Checks existence of specified array of files. * diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index cf7321803c..44449b30cf 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -95,6 +95,9 @@ class ForeignAPIRepo extends FileRepo { function append( $srcPath, $toAppendPath, $flags = 0 ){ return false; } + function appendFinish( $toAppendPath ){ + return false; + } function publishBatch( $triplets, $flags = 0 ) { return false; } diff --git a/includes/filerepo/NullRepo.php b/includes/filerepo/NullRepo.php index d5a1ee03db..cac3e5d8e5 100644 --- a/includes/filerepo/NullRepo.php +++ b/includes/filerepo/NullRepo.php @@ -23,6 +23,9 @@ class NullRepo extends FileRepo { function append( $srcPath, $toAppendPath, $flags = 0 ){ return false; } + function appendFinish( $toAppendPath ){ + return false; + } function publishBatch( $triplets, $flags = 0 ) { return false; } -- 2.20.1