Moved $function definition up to make IDE happy.
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 18 Jan 2013 00:32:19 +0000 (16:32 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 18 Jan 2013 00:32:19 +0000 (16:32 -0800)
Change-Id: Ie42ba484c8c2f65a2ae233f0176a286578555cb2

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?