mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 23:59:41 +02:00
MDL-14965: Pass-by-reference call broke forum on php5
This commit is contained in:
parent
c2f10673b2
commit
e2ebb572b8
1 changed files with 2 additions and 1 deletions
|
@ -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' :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue