Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -31,15 +31,7 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | static function hiddenFieldHTML( $input_name, $cur_value ) { |
35 | | - $input = self::buttonHTML( array( |
36 | | - 'type' => 'hidden', |
37 | | - 'name' => $input_name, |
38 | | - 'value' => $cur_value, |
39 | | - ) ); |
40 | | - return <<<END |
41 | | - $input |
42 | | - |
43 | | -END; |
| 35 | + return "\t\t\t" . Xml::hidden( $input_name, $cur_value ) . "\n"; |
44 | 36 | } |
45 | 37 | |
46 | 38 | /** |
— | — | @@ -142,8 +134,7 @@ |
143 | 135 | * Helper function to display a simple button |
144 | 136 | */ |
145 | 137 | static function buttonHTML( $values ) { |
146 | | - $button_html = Xml::element( 'input', $values, '' ); |
147 | | - return " $button_html\n"; |
| 138 | + return "\t\t" . Xml::element( 'input', $values, '' ) . "\n"; |
148 | 139 | } |
149 | 140 | |
150 | 141 | static function saveButtonHTML( $is_disabled, $label = null, $attr = array() ) { |