From c19adb55acaa1c1f74f7de77bed86eb3a277315d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 8 Sep 2012 19:15:27 -0700 Subject: [PATCH] Renamed $pairs => $triples. Change-Id: Ia87880ed00e734c577e0ab6d07cdac5c8b1dd619 --- includes/filerepo/FileRepo.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 30d6825af2..6a3ae12af6 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -885,20 +885,20 @@ class FileRepo { * * When "dispositions" are given they are used as Content-Disposition if supported. * - * @param $pairs Array List of tuples (file system path, virtual URL/storage path, disposition) + * @param $triples Array List of (file system path, virtual URL/storage path, disposition) * @return FileRepoStatus */ - public function quickImportBatch( array $pairs ) { + public function quickImportBatch( array $triples ) { $status = $this->newGood(); $operations = array(); - foreach ( $pairs as $pair ) { - list ( $src, $dst ) = $pair; + foreach ( $triples as $triple ) { + list( $src, $dst ) = $triple; $dst = $this->resolveToStoragePath( $dst ); $operations[] = array( 'op' => 'store', 'src' => $src, 'dst' => $dst, - 'disposition' => isset( $pair[2] ) ? $pair[2] : null + 'disposition' => isset( $triple[2] ) ? $triple[2] : null ); $status->merge( $this->initDirectory( dirname( $dst ) ) ); } -- 2.20.1