MediaWiki REL1_40
TransformParameterError.php
Go to the documentation of this file.
1<?php
31
37 public function __construct( $params ) {
38 parent::__construct( 'thumbnail_error',
39 max( $params['width'] ?? 0, 120 ),
40 max( $params['height'] ?? 0, 120 ),
41 wfMessage( 'thumbnail_invalid_params' )
42 );
43 }
44
45 public function getHttpStatusCode() {
46 return 400;
47 }
48}
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Basic media transform error class.
Shortcut class for parameter validation errors.