Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -19,9 +19,11 @@ |
20 | 20 | $vars['sfgAdderButtons'] = $sfgAdderButtons; |
21 | 21 | $vars['sfgRemoverButtons'] = $sfgRemoverButtons; |
22 | 22 | $vars['autocompleteOnAllChars'] = $sfgAutocompleteOnAllChars; |
23 | | - $vars['sfgAutocompleteMappings'] = $sfgAutocompleteMappings; |
24 | | - $vars['sfgAutocompleteValues'] = $sfgAutocompleteValues; |
25 | | - $vars['sfgAutocompleteDataTypes'] = $sfgAutocompleteDataTypes; |
| 23 | + // variables that are associative arrays need to be cast as |
| 24 | + // objects, to work with MW 1.15 and earlier |
| 25 | + $vars['sfgAutocompleteMappings'] = (object)$sfgAutocompleteMappings; |
| 26 | + $vars['sfgAutocompleteValues'] = (object)$sfgAutocompleteValues; |
| 27 | + $vars['sfgAutocompleteDataTypes'] = (object)$sfgAutocompleteDataTypes; |
26 | 28 | $vars['sfgComboBoxInputs'] = $sfgComboBoxInputs; |
27 | 29 | $vars['sfgAutogrowInputs'] = $sfgAutogrowInputs; |
28 | 30 | $vars['sfgFormErrorsHeader'] = Xml::escapeJsString( wfMsg( 'sf_formerrors_header' ) ); |