X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Ffilerepo%2Fbackend%2FFileBackendMultiWrite.php;h=114424c2db413a01186955d2bd844e45ad297adc;hb=1c64a0cce023cf2aeeb991d7a1912793987dce2a;hp=58225fd2f05bd20d554e7770cfb47627524a589e;hpb=d163d85ea24f1f6f5f37ca1e7ce076f7e3c995f5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/backend/FileBackendMultiWrite.php b/includes/filerepo/backend/FileBackendMultiWrite.php index 58225fd2f0..114424c2db 100644 --- a/includes/filerepo/backend/FileBackendMultiWrite.php +++ b/includes/filerepo/backend/FileBackendMultiWrite.php @@ -83,7 +83,7 @@ class FileBackendMultiWrite extends FileBackendBase { // Set "files to lock" from the first batch so we don't try to set all // locks two or three times over (depending on the number of backends). // A lock on one storage path is a lock on all the backends. - foreach ( $performOps as $index => $fileOp ) { + foreach ( $performOps as $fileOp ) { $filesLockSh = array_merge( $filesLockSh, $fileOp->storagePathsRead() ); $filesLockEx = array_merge( $filesLockEx, $fileOp->storagePathsChanged() ); } @@ -297,7 +297,7 @@ class FileBackendMultiWrite extends FileBackendBase { * @see FileBackendBase::getFileList() */ function getFileList( array $params ) { - foreach ( $this->backends as $index => $backend ) { + foreach ( $this->backends as $backend ) { # Get results from the first backend $realParams = $this->substOpPaths( $params, $backend ); return $backend->getFileList( $realParams );