https://bugzilla.wikimedia.org/show_bug.cgi?id=28224

           Summary: action=paraminfo gives empty default string for null
           Product: MediaWiki
           Version: 1.18-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]


When the shortcut for type declaration inside the api documentation is used,
then action=paraminfo adds wrongly a empty default attribute to the output, if
the value is null.

See ImageInfo:
'continue' => null
gives:
name="continue" type="string" *default=""*

Looks like strval return an emtpy string for null input:
$a['default'] = strval( $p );

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to