Fill-in missing implementations of abstract function appendFinish()
authorRuss Nelson <nelson@users.mediawiki.org>
Mon, 23 May 2011 02:30:20 +0000 (02:30 +0000)
committerRuss Nelson <nelson@users.mediawiki.org>
Mon, 23 May 2011 02:30:20 +0000 (02:30 +0000)
includes/filerepo/FSRepo.php
includes/filerepo/ForeignAPIRepo.php
includes/filerepo/NullRepo.php

index d374117..a41c04e 100644 (file)
@@ -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.
         *
index cf73218..44449b3 100644 (file)
@@ -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;
        }
index d5a1ee0..cac3e5d 100644 (file)
@@ -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;
        }