Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -681,6 +681,10 @@ |
682 | 682 | // add handling for single-value params, for custom input types |
683 | 683 | $field_args[$sub_components[0]] = null; |
684 | 684 | } elseif ( count( $sub_components ) == 2 ) { |
| 685 | + // First, set each value as its own entry in $field_args. |
| 686 | + $field_args[$sub_components[0]] = $sub_components[1]; |
| 687 | + |
| 688 | + // Then, do all special handling. |
685 | 689 | if ( $sub_components[0] == 'input type' ) { |
686 | 690 | $input_type = $sub_components[1]; |
687 | 691 | } elseif ( $sub_components[0] == 'default' ) { |
— | — | @@ -758,12 +762,9 @@ |
759 | 763 | } elseif ( $sub_components[0] == 'default filename' ) { |
760 | 764 | $default_filename = str_replace( '<page name>', $page_name, $sub_components[1] ); |
761 | 765 | // Parse value, so default filename can include parser functions. |
762 | | - $default_value = $wgParser->recursiveTagParse( $default_filename ); |
| 766 | + $default_filename = $wgParser->recursiveTagParse( $default_filename ); |
763 | 767 | $field_args['default filename'] = $default_filename; |
764 | 768 | } |
765 | | - |
766 | | - // Also set each value as its own entry in $field_args |
767 | | - $field_args[$sub_components[0]] = $sub_components[1]; |
768 | 769 | } |
769 | 770 | } |
770 | 771 | } // end for |