http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88631

Revision: 88631
Author:   nelson
Date:     2011-05-23 02:30:20 +0000 (Mon, 23 May 2011)
Log Message:
-----------
Fill-in missing implementations of abstract function appendFinish()

Modified Paths:
--------------
    trunk/phase3/includes/filerepo/FSRepo.php
    trunk/phase3/includes/filerepo/ForeignAPIRepo.php
    trunk/phase3/includes/filerepo/NullRepo.php

Modified: trunk/phase3/includes/filerepo/FSRepo.php
===================================================================
--- trunk/phase3/includes/filerepo/FSRepo.php   2011-05-23 01:47:39 UTC (rev 
88630)
+++ trunk/phase3/includes/filerepo/FSRepo.php   2011-05-23 02:30:20 UTC (rev 
88631)
@@ -328,6 +328,9 @@
                return $status;
        }
 
+    /* We can actually append to the files, so no-op needed here. */
+       function appendFinish( $toAppendPath ) {}
+
        /**
         * Checks existence of specified array of files.
         *

Modified: trunk/phase3/includes/filerepo/ForeignAPIRepo.php
===================================================================
--- trunk/phase3/includes/filerepo/ForeignAPIRepo.php   2011-05-23 01:47:39 UTC 
(rev 88630)
+++ trunk/phase3/includes/filerepo/ForeignAPIRepo.php   2011-05-23 02:30:20 UTC 
(rev 88631)
@@ -95,6 +95,9 @@
        function append( $srcPath, $toAppendPath, $flags = 0 ){
                return false;
        }
+       function appendFinish( $toAppendPath ){
+               return false;
+       }
        function publishBatch( $triplets, $flags = 0 ) {
                return false;
        }

Modified: trunk/phase3/includes/filerepo/NullRepo.php
===================================================================
--- trunk/phase3/includes/filerepo/NullRepo.php 2011-05-23 01:47:39 UTC (rev 
88630)
+++ trunk/phase3/includes/filerepo/NullRepo.php 2011-05-23 02:30:20 UTC (rev 
88631)
@@ -23,6 +23,9 @@
        function append( $srcPath, $toAppendPath, $flags = 0 ){
                return false;
        }
+       function appendFinish( $toAppendPath ){
+               return false;
+       }
        function publishBatch( $triplets, $flags = 0 ) {
                return false;
        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to