* (bug 17941) $wgMaxUploadSize is now honored by all upload sources
* (bug 23080) New usernames now limited to 235 bytes so that custom skin files
work.
+* (bug 23075) Correct MediaTransformError default width in gallery.
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent
}
function toHtml( $options = array() ) {
- return "<table class=\"MediaTransformError\" style=\"" .
- "width: {$this->width}px; height: {$this->height}px;\"><tr><td>" .
+ return "<div class=\"MediaTransformError\" style=\"" .
+ "width: {$this->width}px; height: {$this->height}px; display:inline-block;\">" .
$this->htmlMsg .
- "</td></tr></table>";
+ "</div>";
}
function toText() {
class TransformParameterError extends MediaTransformError {
function __construct( $params ) {
parent::__construct( 'thumbnail_error',
- max( isset( $params['width'] ) ? $params['width'] : 0, 180 ),
- max( isset( $params['height'] ) ? $params['height'] : 0, 180 ),
+ max( isset( $params['width'] ) ? $params['width'] : 0, 120 ),
+ max( isset( $params['height'] ) ? $params['height'] : 0, 120 ),
wfMsg( 'thumbnail_invalid_params' ) );
}
}