Follow-up r107859: use the proper *Internal functions for doMoveInternal()
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 3 Jan 2012 06:37:55 +0000 (06:37 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 3 Jan 2012 06:37:55 +0000 (06:37 +0000)
includes/filerepo/backend/FileBackend.php

index 37ae399..f37ed08 100644 (file)
@@ -585,12 +585,12 @@ abstract class FileBackend extends FileBackendBase {
         */
        protected function doMoveInternal( array $params ) {
                // Copy source to dest
-               $status = $this->copy( $params );
+               $status = $this->copyInternal( $params );
                if ( !$status->isOK() ) {
                        return $status;
                }
                // Delete source (only fails due to races or medium going down)
-               $status->merge( $this->delete( array( 'src' => $params['src'] ) ) );
+               $status->merge( $this->deleteInternal( array( 'src' => $params['src'] ) ) );
                $status->setResult( true, $status->value ); // ignore delete() errors
                return $status;
        }