MDL-14965: Pass-by-reference call broke forum on php5

This commit is contained in:
sam_marshall
2008-05-23 11:02:27 +00:00
parent 2a212d94a0
commit 1256ee3ec5
+2 -1
View File
@@ -65,7 +65,8 @@ class MoodleQuickForm_format extends MoodleQuickForm_select{
{
switch ($event) {
case 'createElement':
$this->load(format_text_menu());
$menu = format_text_menu();
$this->load($menu);
$this->setHelpButton(array('textformat', get_string('helpformatting')));
break;
case 'updateValue' :