MediaWiki  master
TransformTooBigImageAreaError.php
Go to the documentation of this file.
1 <?php
31  function __construct( $params, $maxImageArea ) {
32  $msg = wfMessage( 'thumbnail_toobigimagearea' );
33  $msg->params(
34  $msg->getLanguage()->formatComputingNumbers( $maxImageArea, 1000, "size-$1pixel" )
35  );
36 
37  parent::__construct( 'thumbnail_error',
38  max( $params['width'] ?? 0, 120 ),
39  max( $params['height'] ?? 0, 120 ),
40  $msg
41  );
42  }
43 
44  function getHttpStatusCode() {
45  return 400;
46  }
47 }
getLanguage()
Returns the Language of the Message.
Definition: Message.php:393
Shortcut class for parameter file size errors.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Basic media transform error class.
params(... $args)
Adds parameters to the parameter list of this message.
Definition: Message.php:510