Merge "Moved $function definition up to make IDE happy."
authorIAlex <ialex.wiki@gmail.com>
Fri, 18 Jan 2013 19:21:47 +0000 (19:21 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 18 Jan 2013 19:21:47 +0000 (19:21 +0000)
includes/filebackend/SwiftFileBackend.php

index 285010a..699648e 100644 (file)
@@ -1283,8 +1283,8 @@ class SwiftFileBackend extends FileBackendStore {
                $cfOps = $batch->execute();
                foreach ( $cfOps as $index => $cfOp ) {
                        $status = Status::newGood();
+                       $function = '_getResponse' . $fileOpHandles[$index]->call;
                        try { // catch exceptions; update status
-                               $function = '_getResponse' . $fileOpHandles[$index]->call;
                                $this->$function( $cfOp, $status, $fileOpHandles[$index]->params );
                                $this->purgeCDNCache( $fileOpHandles[$index]->affectedObjects );
                        } catch ( CloudFilesException $e ) { // some other exception?