From: Neill M. <ne...@nl...> - 2010-12-23 14:35:49
|
Hi again. I also tried reverting to SFI 0.3.1, but then the simpledatepicker does not work at all. The date type property field becomes just a text input (it has the normal SF date input if no input type is specified). This is with SF version 2.0.7, MW 1.16 and SMW 1.5.4. Cheers Neill. On 23/12/10 14:24, Stephan Gambke wrote: > Hey Neill, > >> I'm using SFI version 0.7.3 on MW 1.16 and when I have a field with >> input type=simpledatepicker I get an error every time I edit with form. > > Wow, messages from the distant future. SFI is at 0.3.1 now. :) > > >> The error is: >> Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in >> /home/webapps/foopla/extensions/SemanticFormsInputs/SFI_Inputs.php on >> line 349 > > This is probably a result of me using anonymous functions which only became available with PHP 5.3. (Which PHP version do you use?) > > I plan on fixing this, but don't expect it to be done this year. > If you need it badly, you might try to fix it yourself, it should be fairly straightforward - just use the create_function function (http://php.net/manual/en/function.create-function.php). > > Stephan > |