aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLTitlesMultiselectField.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/htmlform/fields/HTMLTitlesMultiselectField.php')
-rw-r--r--includes/htmlform/fields/HTMLTitlesMultiselectField.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/htmlform/fields/HTMLTitlesMultiselectField.php b/includes/htmlform/fields/HTMLTitlesMultiselectField.php
index 5f41bb137423..c21d129c77a6 100644
--- a/includes/htmlform/fields/HTMLTitlesMultiselectField.php
+++ b/includes/htmlform/fields/HTMLTitlesMultiselectField.php
@@ -92,11 +92,8 @@ class HTMLTitlesMultiselectField extends HTMLTitleTextField {
$params['default'] = $this->mParams['default'];
}
- if ( isset( $this->mParams['placeholder'] ) ) {
- $params['placeholder'] = $this->mParams['placeholder'];
- } else {
- $params['placeholder'] = $this->msg( 'mw-widgets-titlesmultiselect-placeholder' )->plain();
- }
+ $params['placeholder'] = $this->mParams['placeholder'] ??
+ $this->msg( 'mw-widgets-titlesmultiselect-placeholder' )->plain();
if ( isset( $this->mParams['max'] ) ) {
$params['tagLimit'] = $this->mParams['max'];