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

           Summary: action=paraminfo: Extract type from PARAM_DFLT if
                    PARAM_TYPE is not set
           Product: MediaWiki
           Version: wikimedia-deployment
          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]


Created attachment 8333
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=8333
Extract type from PARAM_DFLT if PARAM_TYPE is not set

The declaration
            'unwatch' => array(
                ApiBase::PARAM_DFLT => false,
                ApiBase::PARAM_DEPRECATED => true,
            ),

gives in action=paraminfo no type= and a wrong default.

<param name="unwatch" description="Remove the page from your watchlist"
deprecated="" default="" />

But the default of false indicate a boolean.

The attachment change this to:

<param name="unwatch" description="Remove the page from your watchlist"
deprecated="" default="false" type="bool" />

Thanks.

-- 
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