Page MenuHomePhabricator

warning about uselang parameter should be more correct
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: normal

Details

Reference
bz42343

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:51 AM
bzimport set Reference to bz42343.
Bawolff created this task.Nov 22 2012, 12:45 AM

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

Change 160798 merged by jenkins-bot:
API: HTMLize and internationalize the help, add Special:ApiHelp

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