Page MenuHomePhabricator

Wiki's license information is not available via API
Closed, ResolvedPublic

Description

Author: brianna.laugher

Description:
diff for ApiQuerySiteinfo.php

Patch attached that gets license info from $wgRightsPage, $wgRightsUrl and $wgRightsText (similar to Skin.php).

New 'rightsinfo' for query=siteinfo

for api/ApiQuerySiteinfo.php

Note: I made this patch by editing my MediaWiki 13.3, but I didn't copy the original file before editing it. :( So I performed the diff with http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/api/ApiQuerySiteinfo.php?revision=46337&content-type=text%2Fplain and so some of the diff relates to other additions to this page made, that were not in my copy.

I hope it is clear which bits relate to rightsinfo. If it is too annoying I can try and make a proper diff. Sorry for the hassle.


Version: unspecified
Severity: enhancement

attachment diff.txt ignored as obsolete

Details

Reference
bz17224

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:24 PM
bzimport set Reference to bz17224.

(In reply to comment #0)

I hope it is clear which bits relate to rightsinfo. If it is too annoying I can
try and make a proper diff. Sorry for the hassle.

Sorry, but it is annoying, and it's not a unified diff. Please submit a proper patch that I can just apply and test.

brianna.laugher wrote:

unified diff for ApiQuerySiteinfo.php

Attached:

(In reply to comment #2)

Created an attachment (id=5747) [details]
unified diff for ApiQuerySiteinfo.php

Applied in r46645 with some modifications.