MediaWiki REL1_34
TransformParameterError.php
Go to the documentation of this file.
1<?php
30 function __construct( $params ) {
31 parent::__construct( 'thumbnail_error',
32 max( $params['width'] ?? 0, 120 ),
33 max( $params['height'] ?? 0, 120 ),
34 wfMessage( 'thumbnail_invalid_params' )
35 );
36 }
37
38 function getHttpStatusCode() {
39 return 400;
40 }
41}
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Basic media transform error class.
Shortcut class for parameter validation errors.