Last modified: 2014-10-15 15:13:27 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 T44343, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42343 - warning about uselang parameter should be more correct
warning about uselang parameter should be more correct
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Brad Jorsch
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-22 00:45 UTC by Bawolff (Brian Wolff)
Modified: 2014-10-15 15:13 UTC (History)
6 users (show)

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


Attachments

Description Bawolff (Brian Wolff) 2012-11-22 00:45:37 UTC
If you feed the API the uselang parameter (for a module other than watch or parse), the API reports invalid parameter. However, MW (before the API comes to play) uses that to set global state of $wgLang (or the fake global state of all those Context variables).

The warning should be less "Unrecognized parameter: 'uselang'" and more like "uselang parameter not explicitly allowed for this module, but may nonetheless have side effects. It is recommended one does not use that parameter".

I still feel we should have some sort of warning, because users should not be using it unless its specifically listed as allowed.


See also Gerrit change #34595 for some discussion
Comment 1 Gerrit Notification Bot 2014-09-17 21:23:16 UTC
Change 160798 had a related patch set uploaded by Anomie:
API: HTMLize and internationalize the help, add Special:ApiHelp

https://gerrit.wikimedia.org/r/160798
Comment 2 Gerrit Notification Bot 2014-10-13 22:19:52 UTC
Change 160798 merged by jenkins-bot:
API: HTMLize and internationalize the help, add Special:ApiHelp

https://gerrit.wikimedia.org/r/160798

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


Navigation
Links