Last modified: 2011-09-29 20:58:47 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 T19224, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17224 - Wiki's license information is not available via API
Wiki's license information is not available via API
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
: easy, patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-29 12:20 UTC by brianna.laugher
Modified: 2011-09-29 20:58 UTC (History)
5 users (show)

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


Attachments
diff for ApiQuerySiteinfo.php (4.41 KB, patch)
2009-01-29 12:20 UTC, brianna.laugher
Details
unified diff for ApiQuerySiteinfo.php (1.80 KB, patch)
2009-01-30 01:51 UTC, brianna.laugher
Details

Description brianna.laugher 2009-01-29 12:20:00 UTC
Created attachment 5744 [details]
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.
Comment 1 Roan Kattouw 2009-01-29 16:18:27 UTC
(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.
Comment 2 brianna.laugher 2009-01-30 01:51:13 UTC
Created attachment 5747 [details]
unified diff for ApiQuerySiteinfo.php
Comment 3 Roan Kattouw 2009-01-31 16:01:45 UTC
(In reply to comment #2)
> Created an attachment (id=5747) [details]
> unified diff for ApiQuerySiteinfo.php
> 
Applied in r46645 with some modifications.

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


Navigation
Links