MediaWiki  master
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 }
Shortcut class for parameter validation errors.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Basic media transform error class.