From: Tim Starling Date: Wed, 27 Feb 2008 07:06:32 +0000 (+0000) Subject: Partial solution (quick hack) for bug 12970. X-Git-Tag: 1.31.0-rc.0~49319 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=d9b1eb90ee3f2c30d1a67e68b6b04b5620b9b7a2;p=lhc%2Fweb%2Fwiklou.git Partial solution (quick hack) for bug 12970. --- diff --git a/includes/media/Bitmap.php b/includes/media/Bitmap.php index ca82aab0dd..db3d82cfdd 100644 --- a/includes/media/Bitmap.php +++ b/includes/media/Bitmap.php @@ -85,8 +85,8 @@ class BitmapHandler extends ImageHandler { } if ( !wfMkdirParents( dirname( $dstPath ) ) ) { - return new MediaTransformError( 'thumbnail_error', $clientWidth, $clientHeight, - wfMsg( 'thumbnail_dest_directory' ) ); + wfDebug( "Unable to create thumbnail destination directory, falling back to client scaling\n" ); + return new ThumbnailImage( $image, $image->getURL(), $clientWidth, $clientHeight, $srcPath ); } if ( $scaler == 'im' ) {