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

This commit is contained in:
sam_marshall 2008-05-23 11:02:46 +00:00
parent c2f10673b2
commit e2ebb572b8

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' :