X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=blobdiff_plain;f=maintenance%2FsyncFileBackend.php;h=63d5e9f889c4a60053064033147772f350b2a374;hb=970c99e5dd34457704dae2ed14d214374693a1d4;hp=b9493cdc0be6d1781c772d64e8593b34384e4617;hpb=13e33c28983461d5b8bdc1dece0cd0a35347a261;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 ) {