Last modified: 2009-05-10 10:01:31 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 T20750, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18750 - remove empty prefix="" from action=paraminfo
remove empty prefix="" from action=paraminfo
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
http://translatewiki.net/w/api.php?ac...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-10 09:58 UTC by Umherirrender
Modified: 2009-05-10 10:01 UTC (History)
3 users (show)

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


Attachments

Description Umherirrender 2009-05-10 09:58:34 UTC
To signal a true boolean in xml the syntax 'attribut=""' is used. When there is a module without a prefix, action=paraminfo shows a prefix="", but that means there is no prefix (because the string is empty), and not a true boolean. So remove this empty attribut, to show there is no prefix (or make this as invalid). Thanks.

Maybe getModulePrefix() should give a null instead of an empty string, when there is no prefix.
Comment 1 Roan Kattouw 2009-05-10 10:01:31 UTC
Yes, empty strings and boolean trues look the same, and yes, that's not ideal, but that's how it is, and it can't be changed because that would break every bot using the API.

IMO it's pretty clear from context that 'prefix' is not a boolean attribute (knowing there is a prefix is pretty useless unless you know what it is), so I'm closing this as INVALID.

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


Navigation
Links