Index: trunk/phase3/includes/filerepo/file/File.php |
— | — | @@ -807,9 +807,12 @@ |
808 | 808 | } |
809 | 809 | } elseif ( $thumb->hasFile() && !$thumb->fileIsSource() ) { |
810 | 810 | // Copy the thumbnail from the file system into storage |
811 | | - $status = $this->repo->store( |
812 | | - $tmpThumbPath, 'thumb', $this->getThumbRel( $thumbName ), |
813 | | - FileRepo::OVERWRITE | FileRepo::SKIP_LOCKING | FileRepo::ALLOW_STALE ); |
| 811 | + // We don't use FileRepo::store() because of hacky suclasses |
| 812 | + // overriding File::getThumbPath() to use a different zone (e.g. 'temp'). |
| 813 | + $status = $this->repo->getBackend()->store( |
| 814 | + array( 'src' => $tmpThumbPath, 'dst' => $thumbPath ), |
| 815 | + array( 'ignoreErrors' => 1, 'nonLocking' => 1, 'allowStale' => 1 ) |
| 816 | + ); |
814 | 817 | if ( $status->isOK() ) { |
815 | 818 | $thumb->setStoragePath( $thumbPath ); |
816 | 819 | } else { |