@@ -29,13 +29,15 @@ discard block |
||
29 | 29 | * Get a Message object with its context set |
30 | 30 | * |
31 | 31 | * @param string $name Message name |
32 | - * @param ... $params Message params |
|
33 | 32 | * @return Message |
34 | 33 | */ |
35 | 34 | public function getMsg( $name /* ... */ ) { |
36 | 35 | return call_user_func_array( [ $this->getSkin(), 'msg' ], func_get_args() ); |
37 | 36 | } |
38 | 37 | |
38 | + /** |
|
39 | + * @param string $str |
|
40 | + */ |
|
39 | 41 | function msg( $str ) { |
40 | 42 | echo $this->getMsg( $str )->escaped(); |
41 | 43 | } |
@@ -507,6 +509,9 @@ discard block |
||
507 | 509 | return Html::element( 'input', $realAttrs ); |
508 | 510 | } |
509 | 511 | |
512 | + /** |
|
513 | + * @param string $mode |
|
514 | + */ |
|
510 | 515 | function makeSearchButton( $mode, $attrs = [] ) { |
511 | 516 | switch ( $mode ) { |
512 | 517 | case 'go': |