Followup r93132, misplaced ) caused 'dirname() expects exactly 1 parameter, 3 given...
authorDaniel Friesen <dantman@users.mediawiki.org>
Tue, 26 Jul 2011 02:44:27 +0000 (02:44 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Tue, 26 Jul 2011 02:44:27 +0000 (02:44 +0000)
includes/media/Bitmap.php

index 08d9eaf..9380095 100644 (file)
@@ -157,7 +157,7 @@ class BitmapHandler extends ImageHandler {
                }
 
                # Try to make a target path for the thumbnail
-               if ( !wfMkdirParents( dirname( $dstPath, null, __METHOD__ ) ) ) {
+               if ( !wfMkdirParents( dirname( $dstPath ), null, __METHOD__ ) ) {
                        wfDebug( __METHOD__ . ": Unable to create thumbnail destination directory, falling back to client scaling\n" );
                        return $this->getClientScalingThumbnailImage( $image, $scalerParams );
                }