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 "Move up devunt's name to Developers"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiOptions.php
diff --git
a/includes/api/ApiOptions.php
b/includes/api/ApiOptions.php
index
e51d46d
..
8bfe447
100644
(file)
--- a/
includes/api/ApiOptions.php
+++ b/
includes/api/ApiOptions.php
@@
-86,8
+86,7
@@
class ApiOptions extends ApiBase {
// We need a dummy HTMLForm for the validate callback...
$htmlForm = new HTMLForm( [], $this );
}
// We need a dummy HTMLForm for the validate callback...
$htmlForm = new HTMLForm( [], $this );
}
- $field = HTMLForm::loadInputFromParameters( $key, $prefs[$key] );
- $field->mParent = $htmlForm;
+ $field = HTMLForm::loadInputFromParameters( $key, $prefs[$key], $htmlForm );
$validation = $field->validate( $value, $user->getOptions() );
break;
case 'registered-multiselect':
$validation = $field->validate( $value, $user->getOptions() );
break;
case 'registered-multiselect':