Index: trunk/extensions/SemanticForms/includes/forminputs/SF_FormInput.php |
— | — | @@ -301,8 +301,12 @@ |
302 | 302 | if ( function_exists('get_called_class') ) { |
303 | 303 | $calledClass = get_called_class(); |
304 | 304 | } else { |
305 | | - $bt = debug_backtrace(); |
306 | | - $calledClass = $bt[1]['args'][0][0]; |
| 305 | + if ( $input_name === 'sf_free_text' ) { // free text |
| 306 | + $calledClass = 'SFTextAreaInput'; |
| 307 | + } else { |
| 308 | + $bt = debug_backtrace(false); |
| 309 | + $calledClass = $bt[1]['args'][0][0]; |
| 310 | + } |
307 | 311 | } |
308 | 312 | |
309 | 313 | $input = new $calledClass ( $sfgFieldNum, $cur_value, $input_name, $is_disabled, $other_args ); |