Last modified: 2011-12-14 20:04:20 UTC
I recently upgraded to Semantic Forms Inputs 0.5 and was getting this error on a form that uses the date picker. PHP Fatal error: Call to a member function getCode() on a non-object in /srv/www/mediawiki/public_html/w/extensions/SemanticFormsInputs-0.5/includes/SFI_DatePicker.php on line 177 This is the line that was blowing up if ( $wgAmericanDates && $wgLang->getCode() == "en" ) { I added a global declaration to the function and that fixed the problem. global $wgLang;
Fixed in r106238 Thanks for the report!