Last modified: 2011-12-14 20:04:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35075, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33075 - Bug in SFI_DatePicker.php
Bug in SFI_DatePicker.php
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticFormsInputs (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: s7eph4n
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-14 03:00 UTC by Jamie Thingelstad
Modified: 2011-12-14 20:04 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jamie Thingelstad 2011-12-14 03:00:49 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;
Comment 1 s7eph4n 2011-12-14 20:04:20 UTC
Fixed in r106238

Thanks for the report!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links