diff options
author | Thalia <thalia.e.chan@googlemail.com> | 2021-01-22 16:24:53 +0000 |
---|---|---|
committer | Thalia <thalia.e.chan@googlemail.com> | 2021-01-22 16:24:53 +0000 |
commit | d8356d741c3502bb73f39d95fec737fffad990e1 (patch) | |
tree | 59c13e3ce59c54bfac348e4a6940f123af7460ca /includes/htmlform/fields/HTMLFileField.php | |
parent | 744569f8b6c9ef9e3dcdfa40f4953845c944b8ab (diff) | |
download | mediawikicore-d8356d741c3502bb73f39d95fec737fffad990e1.tar.gz mediawikicore-d8356d741c3502bb73f39d95fec737fffad990e1.zip |
HTMLFileField: Make 'accept' parameter optional
Change-Id: I55321f90fad832d22661628334d2d254780e07da
Diffstat (limited to 'includes/htmlform/fields/HTMLFileField.php')
-rw-r--r-- | includes/htmlform/fields/HTMLFileField.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/htmlform/fields/HTMLFileField.php b/includes/htmlform/fields/HTMLFileField.php index 3a06dcff2ca2..c00d822a1f0c 100644 --- a/includes/htmlform/fields/HTMLFileField.php +++ b/includes/htmlform/fields/HTMLFileField.php @@ -42,7 +42,7 @@ class HTMLFileField extends HTMLFormField { $this->mPlaceholder = $params['placeholder']; } - $this->mAccept = $params['accept'] ?: null; + $this->mAccept = $params['accept'] ?? null; $this->mMultiple = !empty( $params['multiple'] ); } |