Removed the redundant wfMkdirParents() call added to BitmapHandler::doTransform(...
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 22 Sep 2011 03:37:39 +0000 (03:37 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 22 Sep 2011 03:37:39 +0000 (03:37 +0000)
includes/media/Bitmap.php

index 24f0dbd..00d6dc2 100644 (file)
@@ -223,13 +223,6 @@ class BitmapHandler extends ImageHandler {
                } else {
                        $scaler = 'client';
                }
-
-               if ( $scaler != 'client' && $dstPath ) {
-                       if ( !wfMkdirParents( dirname( $dstPath ), null, __METHOD__ ) ) {
-                               # Unable to create a path for the thumbnail
-                               return 'client';
-                       }
-               }
                return $scaler;
        }