Browse files

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

  • Loading branch information...
1 parent 2a212d9 commit 1256ee3ec5ea540d7f24efcaea1da28462ca81fb sam_marshall committed May 23, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/form/format.php
View
3 lib/form/format.php
@@ -65,7 +65,8 @@ function onQuickFormEvent($event, $arg, &$caller)
{
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' :

0 comments on commit 1256ee3

Please sign in to comment.