Last modified: 2012-04-12 13:55: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 T26016, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24016 - Parameter help information incorrect using (parameter name) => (default value) and default is a string
Parameter help information incorrect using (parameter name) => (default value...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-17 16:54 UTC by Brad Jorsch
Modified: 2012-04-12 13:55 UTC (History)
5 users (show)

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


Attachments
One easy fix (569 bytes, patch)
2010-06-17 16:54 UTC, Brad Jorsch
Details

Description Brad Jorsch 2010-06-17 16:54:25 UTC
Created attachment 7480 [details]
One easy fix

This can be seen at the moment in enwiki's api help output for action=stabilize's expiry parameter. The problem is that PHP interprets $x[$i] as substr($x,$i,1) when $x is a string.

The attached patch is one easy way to fix it, or you could refactor makeHelpMsgParameters to treat $paramSettings in the same way getParameterFromSettings does.
Comment 1 Roan Kattouw 2010-06-18 09:30:54 UTC
Patch committed in r68211.

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


Navigation
Links