dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Permit case independent unit test directories"
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
fields
/
HTMLSelectField.php
diff --git
a/includes/htmlform/fields/HTMLSelectField.php
b/includes/htmlform/fields/HTMLSelectField.php
index
40b31b5
..
18c741b
100644
(file)
--- a/
includes/htmlform/fields/HTMLSelectField.php
+++ b/
includes/htmlform/fields/HTMLSelectField.php
@@
-4,7
+4,7
@@
* A select dropdown field. Basically a wrapper for Xmlselect class
*/
class HTMLSelectField extends HTMLFormField {
* A select dropdown field. Basically a wrapper for Xmlselect class
*/
class HTMLSelectField extends HTMLFormField {
- function validate( $value, $alldata ) {
+
public
function validate( $value, $alldata ) {
$p = parent::validate( $value, $alldata );
if ( $p !== true ) {
$p = parent::validate( $value, $alldata );
if ( $p !== true ) {
@@
-16,11
+16,11
@@
class HTMLSelectField extends HTMLFormField {
if ( in_array( strval( $value ), $validOptions, true ) ) {
return true;
} else {
if ( in_array( strval( $value ), $validOptions, true ) ) {
return true;
} else {
- return $this->msg( 'htmlform-select-badoption' )
->parse()
;
+ return $this->msg( 'htmlform-select-badoption' );
}
}
}
}
- function getInputHTML( $value ) {
+
public
function getInputHTML( $value ) {
$select = new XmlSelect( $this->mName, $this->mID, strval( $value ) );
if ( !empty( $this->mParams['disabled'] ) ) {
$select = new XmlSelect( $this->mName, $this->mID, strval( $value ) );
if ( !empty( $this->mParams['disabled'] ) ) {
@@
-42,7
+42,7
@@
class HTMLSelectField extends HTMLFormField {
return $select->getHTML();
}
return $select->getHTML();
}
- function getInputOOUI( $value ) {
+
public
function getInputOOUI( $value ) {
$disabled = false;
$allowedParams = [ 'tabindex' ];
$attribs = OOUI\Element::configFromHtmlAttributes(
$disabled = false;
$allowedParams = [ 'tabindex' ];
$attribs = OOUI\Element::configFromHtmlAttributes(