Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ed6fc
)
MDL-20204 fixing typo and missing static method identifier
author
David Mudrak
<david.mudrak@gmail.com>
Fri, 19 Feb 2010 13:10:15 +0000
(13:10 +0000)
committer
David Mudrak
<david.mudrak@gmail.com>
Fri, 19 Feb 2010 13:10:15 +0000
(13:10 +0000)
lib/outputcomponents.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/outputcomponents.php
b/lib/outputcomponents.php
index
69479c0
..
6c75bfe
100644
(file)
--- 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);
}