From 741c0e6abeb23e71ed163c4543ef43a8a5d84851 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 7 Nov 2016 09:06:40 +0800 Subject: [PATCH] MDL-55215 forms: Rename searchableselector params --- lib/form/searchableselector.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/form/searchableselector.php b/lib/form/searchableselector.php index 2bfa42445d1..c4a0bd58ded 100644 --- a/lib/form/searchableselector.php +++ b/lib/form/searchableselector.php @@ -44,12 +44,12 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_autocomplete { * * @param string $elementname Element name * @param mixed $elementlabel Label(s) for an element - * @param array $choices List of valid choices for the select. - * @param array $options List of valid options for the select. + * @param array $options List of valid options for the select + * @param array $attributes List of HTML attributes for the select */ - public function __construct($elementname = null, $elementlabel = null, $choices = array(), $options = array()) { - $choices = array_merge(['' => get_string('noselection', 'form')], $choices); - parent::__construct($elementname, $elementlabel, $choices, $options); + public function __construct($elementname = null, $elementlabel = null, $options = [], $attributes = []) { + $options = array_merge(['' => get_string('noselection', 'form')], $options); + parent::__construct($elementname, $elementlabel, $options, $attributes); } /**