From: Aaron Schulz Date: Mon, 9 Jan 2012 21:21:40 +0000 (+0000) Subject: Fix r108185: file transform store op needs 'overwriteDest' X-Git-Tag: 1.31.0-rc.0~25381 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=aab6fd63f48067313880976037955c7aa32f6092;p=lhc%2Fweb%2Fwiklou.git Fix r108185: file transform store op needs 'overwriteDest' --- diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index 2554af5009..c9dd775a49 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -811,12 +811,13 @@ abstract class File { // FileRepo::store(); getThumbPath() uses a different zone in some subclasses. $backend->prepare( array( 'dir' => dirname( $thumbPath ) ) ); $status = $backend->store( - array( 'src' => $tmpThumbPath, 'dst' => $thumbPath ), + array( 'src' => $tmpThumbPath, 'dst' => $thumbPath, 'overwriteDest' => 1 ), array( 'force' => 1, 'nonLocking' => 1, 'allowStale' => 1 ) ); if ( $status->isOK() ) { $thumb->setStoragePath( $thumbPath ); } else { + var_dump($status->errors); $thumb = $this->transformErrorOutput( $thumbPath, $thumbUrl, $params, $flags ); } }