passing thumbnail params to getThumbType, as suggested by TimStarling in a comment...
authorDaniel Kinzler <daniel@users.mediawiki.org>
Tue, 22 Jun 2010 16:01:54 +0000 (16:01 +0000)
committerDaniel Kinzler <daniel@users.mediawiki.org>
Tue, 22 Jun 2010 16:01:54 +0000 (16:01 +0000)
includes/filerepo/File.php
includes/media/Generic.php

index ad69519..1469668 100644 (file)
@@ -460,7 +460,7 @@ abstract class File {
                        return null;
                }
                $extension = $this->getExtension();
-               list( $thumbExt, $thumbMime ) = $this->handler->getThumbType( $extension, $this->getMimeType() );
+               list( $thumbExt, $thumbMime ) = $this->handler->getThumbType( $extension, $this->getMimeType(), $params );
                $thumbName = $this->handler->makeParamString( $params ) . '-' . $this->getName();
                if ( $thumbExt != $extension ) {
                        $thumbName .= ".$thumbExt";
index b866287..6f2230b 100644 (file)
@@ -139,7 +139,7 @@ abstract class MediaHandler {
         * Get the thumbnail extension and MIME type for a given source MIME type
         * @return array thumbnail extension and MIME type
         */
-       function getThumbType( $ext, $mime ) {
+       function getThumbType( $ext, $mime, $params = null ) {
                return array( $ext, $mime );
        }