Index: trunk/extensions/OggHandler/OggHandler_body.php |
— | — | @@ -187,16 +187,23 @@ |
188 | 188 | |
189 | 189 | if ( $srcHeight == 0 || $srcWidth == 0 ) { |
190 | 190 | // Make audio player |
| 191 | + $height = empty( $params['height'] ) ? 20 : $params['height']; |
191 | 192 | if ( $noPlayer ) { |
192 | | - $scriptPath = self::getMyScriptPath(); |
193 | | - return new ThumbnailImage( $file, "$scriptPath/info.png", 22, 22 ); |
| 193 | + if ( $height > 100 ) { |
| 194 | + global $wgScriptPath; |
| 195 | + $iconUrl = "$wgScriptPath/skins/common/images/icons/fileicon-ogg.png"; |
| 196 | + return new ThumbnailImage( $file, $iconUrl, 120, 120 ); |
| 197 | + } else { |
| 198 | + $scriptPath = self::getMyScriptPath(); |
| 199 | + $iconUrl = "$scriptPath/info.png"; |
| 200 | + return new ThumbnailImage( $file, $iconUrl, 22, 22 ); |
| 201 | + } |
194 | 202 | } |
195 | 203 | if ( empty( $params['width'] ) ) { |
196 | 204 | $width = 200; |
197 | 205 | } else { |
198 | 206 | $width = $params['width']; |
199 | 207 | } |
200 | | - $height = empty( $params['height'] ) ? 20 : $params['height']; |
201 | 208 | return new OggAudioDisplay( $file, $file->getURL(), $width, $height, $length ); |
202 | 209 | } |
203 | 210 | |