From 19f3bbb2655701172a2526f075d4ce6b83d86f31 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Fri, 19 Feb 2010 13:10:15 +0000 Subject: [PATCH] MDL-20204 fixing typo and missing static method identifier --- lib/outputcomponents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 69479c02bff..6c75bfee66d 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -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); }