MDL-20204 fixing typo and missing static method identifier
authorDavid Mudrak <david.mudrak@gmail.com>
Fri, 19 Feb 2010 13:10:15 +0000 (13:10 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Fri, 19 Feb 2010 13:10:15 +0000 (13:10 +0000)
lib/outputcomponents.php

index 69479c0..6c75bfe 100644 (file)
@@ -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);
     }