Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -39,7 +39,12 @@ |
40 | 40 | } |
41 | 41 | |
42 | 42 | static function hiddenFieldHTML( $input_name, $cur_value ) { |
43 | | - return "\t\t\t" . Html::Hidden( $input_name, $cur_value ) . "\n"; |
| 43 | + // 'Html' class was added in MW 1.16 |
| 44 | + if ( class_exists( 'Html' ) ) { |
| 45 | + return "\t" . Html::hidden( $input_name, $cur_value ) . "\n"; |
| 46 | + } else { |
| 47 | + return "\t" . Xml::hidden( $input_name, $cur_value ) . "\n"; |
| 48 | + } |
44 | 49 | } |
45 | 50 | |
46 | 51 | /** |