mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-20204 fixing typo and missing static method identifier
This commit is contained in:
parent
f4ed6fc4b4
commit
19f3bbb265
@ -738,7 +738,7 @@ class html_writer {
|
||||
* @param array $attributes - html select element attributes
|
||||
* @return string HRML fragment
|
||||
*/
|
||||
public function select_yes_no($name, $selected=true, array $attributes = null) {
|
||||
public static function select_yes_no($name, $selected=true, array $attributes = null) {
|
||||
$options = array('1'=>get_string('yes'), '0'=>get_string('no'));
|
||||
return self::select($options, $name, $selected, null, $attributes);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user