From d9b1eb90ee3f2c30d1a67e68b6b04b5620b9b7a2 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 27 Feb 2008 07:06:32 +0000 Subject: [PATCH] Partial solution (quick hack) for bug 12970. --- includes/media/Bitmap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ) { -- 2.20.1