X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FsyncFileBackend.php;h=63d5e9f889c4a60053064033147772f350b2a374;hb=673f0e57cec5f83fadc9f50780409eee8e604a93;hp=b9493cdc0be6d1781c772d64e8593b34384e4617;hpb=de31b2474e29fe2f2eea6648b83d01ee53a726b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/syncFileBackend.php b/maintenance/syncFileBackend.php index b9493cdc0b..63d5e9f889 100644 --- a/maintenance/syncFileBackend.php +++ b/maintenance/syncFileBackend.php @@ -159,6 +159,7 @@ class SyncFileBackend extends Maintenance { $this->error( "Error: given starting ID greater than ending ID.", 1 ); } + $next = null; do { $limit = min( $this->mBatchSize, $end - $start + 1 ); // don't go pass ending ID $this->output( "Doing id $start to " . ( $start + $limit - 1 ) . "...\n" ); @@ -280,6 +281,7 @@ class SyncFileBackend extends Maintenance { * Substitute the backend name of storage paths with that of a given one * * @param array|string $paths List of paths or single string path + * @param FileBackend $backend * @return array|string */ protected function replaceNamePaths( $paths, FileBackend $backend ) {