Roan Kattouw
7de8bc26be
API: Updating credits to reflect my having replaced Yuri as de facto API lead developer, and referring to mediawiki-api and Bugzilla for questions/suggestions
2008-02-07 15:58:53 +00:00
Roan Kattouw
a121bda026
(bug 12944) Filter categorymembers by timestamp
2008-02-07 15:17:42 +00:00
Roan Kattouw
a95cd777c7
(bug 12953) prop=imageinfo should only set query-continue when there is only one title; trying to overwrite a previously set query-continue causes a fatal error
2008-02-07 12:21:48 +00:00
Roan Kattouw
deebcf4a82
(bug 12912) Made list=usercontribs' ucuser a multival. Concretely, this means you can grab contribs for multiple users at once (there is a catch, though, see comments on bug).
2008-02-05 15:40:58 +00:00
Roan Kattouw
2a13fafebd
Consistency
2008-02-04 17:23:05 +00:00
Roan Kattouw
15c1a53295
(bug 12898) imageusage and categorymembers lack consistency
2008-02-04 16:58:51 +00:00
Bryan Tong Minh
2e8ec6daf0
Added siprop=namespacealiases to meta=siteinfo
2008-02-03 19:29:59 +00:00
Roan Kattouw
0d5b7c3a1d
(bug 12875) Adding query-continue to prop=imageinfo. Patch by Bryan Tongh Minh.
2008-02-03 19:03:01 +00:00
Bryan Tong Minh
eb0caaec62
In case the current image is not included return the correct amount of items.
2008-02-02 21:14:45 +00:00
Bryan Tong Minh
2331d7489c
Convert size, width and height to int, as before r29981
2008-02-02 16:04:54 +00:00
Roan Kattouw
f350b22627
API: Improving list=random. We now use the wrap-around from Title::getRandomTitle() to get enough pages anyway if we're unlucky, and check for duplicates.
2008-02-01 23:05:19 +00:00
Roan Kattouw
a03d9a8d11
API: Adding uiprop=ratelimits to meta=userinfo. Note that this option only reveals rate limits applicable to the current user, not the entire $wgRateLimits array.
2008-02-01 14:46:46 +00:00
Roan Kattouw
55021c485f
API: Removing duplicate functionality from userinfo; it's implemented in list=users already. Probably forgot to commit this when introducing list=users
2008-02-01 13:43:01 +00:00
Brion Vibber
7a3227596e
* Merged backends for OpenSearch suggestions and AJAX search.
...
Both now accept namespace prefixes, handle 'Media:' and 'Special:' pages,
and reject interwiki prefixes. PrefixSearch class centralizes this code,
and the backend part can be overridden by the PrefixSearchBackend hook.
2008-01-30 01:07:49 +00:00
Roan Kattouw
99081812d7
API: Adding page parameter to action=parse to facilitate parsing existing pages. Note that this isn't the same as action=raw: action=parse also returns the section tree and other useful stuff. The parameter is called "page" rather than "title" because there is a "title" parameter already and I decided to go the backwards compatible road for a change :D
2008-01-29 14:47:27 +00:00
Roan Kattouw
19358606a1
API: Changing all modules' getParamDescription(), getAllowedParams() and getDescription() methods to public. ApiParamInfo needs them, and some versions of PHP threw fatal errors because they were protected. Oddly, other versions didn't (maybe because the caller and the callee have a common ancestor?)
2008-01-28 19:05:26 +00:00
Roan Kattouw
1b691f504b
(bug 12816) Adding list=random module which fetches a list of random pages. Based on a patch by Brent G.
2008-01-28 13:56:20 +00:00
Roan Kattouw
a81bd8ad8f
API: Splitting of uiuser part of meta=userinfo to list=users, as discussed on the API list.
2008-01-27 20:28:36 +00:00
Roan Kattouw
3f48af6d30
Fixing some messages in ApiBase
2008-01-25 12:52:14 +00:00
Roan Kattouw
455eefb6fa
Change action=paraminfo's format to something that won't render invalid XML
2008-01-25 12:28:18 +00:00
Roan Kattouw
c78f424cf6
Clarifying unorthodox MIME type
2008-01-25 10:46:39 +00:00
Roan Kattouw
df156891a0
API:
...
* Added uiuser parameter to meta=userinfo that gets information about users other than the current user.
* Pretty much completely rewrote userinfo to facilitate this
2008-01-24 17:59:07 +00:00
Roan Kattouw
9c55586e57
Tweaking r30119: changing txt and dbg's MIME type to text and adding txtfm and dbgfm with HTML-escaped stuff.
2008-01-24 13:16:34 +00:00
Roan Kattouw
d2cb8c025e
No need to revert r30078: HTML-formatting the data is enough. Attacks like api.php?action=paraminfo&modules=%3Cscript%3Ealert('Owned');%3C/script%3E&format=txt don't work anymore now.
2008-01-24 13:12:03 +00:00
Brion Vibber
c0801b22f0
Revert r30078 -- formats "txt" and "dbg" dump raw unfiltered text contents into HTML output. XSS vector.
2008-01-23 23:06:10 +00:00
Bryan Tong Minh
5b1493c931
ApiQueryImageInfo: Convert sha1 to base16 like before r29981
2008-01-23 20:32:47 +00:00
Roan Kattouw
24c478b815
API: Added uiprop=editcount to meta=userinfo
2008-01-23 20:13:58 +00:00
Roan Kattouw
262afb4b62
API: Adding txt and dbg formats, imported from query.php
2008-01-23 19:51:21 +00:00
Roan Kattouw
8a0e46d97c
API:
...
* Fixing buggy class instantiation in ApiParamInfo
* Adding getModules() method to ApiMain and ApiQuery
2008-01-23 18:40:40 +00:00
Roan Kattouw
c4e5236096
API: Adding module prefix information to action=paraminfo
2008-01-23 17:28:45 +00:00
Roan Kattouw
702ff66de4
API: Adding parameter description to action=paraminfo output
2008-01-23 16:59:37 +00:00
Roan Kattouw
307264971e
API:
...
* Returning proportions of thumbnailed image
* INTERFACE CHANGE: thumbnail url is now returned as "thumburl" rather than "url"
* Adding RELEASE-NOTES entry that should've been added a couple of days ago
2008-01-22 21:46:29 +00:00
Roan Kattouw
abaf9995ba
(bug 12718) Added action=paraminfo module that provides information about API modules and their parameters
2008-01-22 21:22:04 +00:00
Aaron Schulz
f3d2b1f8e6
Convert to the right timestamp format before doing a query
2008-01-21 19:37:07 +00:00
Roan Kattouw
ad2b895801
* API: Added apfilterlanglinks parameter to list=allpages, replacing query.php?what=nolanglinks
2008-01-20 18:20:08 +00:00
Roan Kattouw
60283a5f0a
(bug 12704) Adding amlang parameter to meta=allmessages
2008-01-20 14:20:50 +00:00
Roan Kattouw
22da621e60
Small fix
2008-01-20 13:22:14 +00:00
Roan Kattouw
01a2ae7561
* Refactoring ApiQueryImageInfo to use new File::loadHistory() interface. No change in user-observed behavior
2008-01-20 13:09:32 +00:00
Roan Kattouw
491cc4a320
API: Making a bunch of state-changing modules require POST requests.
2008-01-18 20:43:59 +00:00
Roan Kattouw
f0f08ff3f2
API: Adding thumbnailing support to prop=imageinfo
2008-01-18 20:17:26 +00:00
Roan Kattouw
0ffedad161
* Changing PageArchive::undelete() and undeleteRevisions() to return false rather than an error code
...
* Refactoring ApiUndelete to use ApiBase::dieUsageMsg()
* Adding new messages to ApiBase::$messageMap
2008-01-18 19:38:28 +00:00
Roan Kattouw
152463e335
* Refactored IPUnblockForm::doUnblock() to return an array of message keys and parameters
...
* Refactored IPUnblockForm::doSubmit() and ApiUnblock accordingly
* Added even more messages to ApiBase::$messageMap
2008-01-18 18:53:57 +00:00
Roan Kattouw
61a205a3c9
* Refactoring IPBlockForm::doBlock() to return message keys
...
* Refactoring ApiBlock accordingly
* Adding check for blockemail right to ApiBlock
* Adding more messages to ApiBase::$messageMap
* Fixing E_NOTICE in SpecialIpblocklist.php
2008-01-18 17:48:03 +00:00
Roan Kattouw
d371af72a8
API:
...
* Refactored ApiProtect. No need for core modifications this time :)
* Added permissions check to ApiMove to protect against messages with arguments getting none. moveTo()'s return value should really be modified, see also comment
2008-01-18 16:34:40 +00:00
Roan Kattouw
1b2b5ecde0
API: Unifying "the ... parameter must be set" messages into one ('missingparam'), expanding $1 in error codes as well.
2008-01-18 16:01:31 +00:00
Roan Kattouw
1f4ddb930d
Core:
...
* Using getUserPermissionsErrors() rather than userCan() in Title::isValidMoveOperation()
* Removing blocked check from Article::doRollback(): Title::getUserPermissionsErrors() checks for that already
API:
* Refactoring ApiMove to use new messages system
* Adding more messages to ApiBase::$messageMap
* Removing unused parameter to 'notanarticle' in ApiDelete::execute()
2008-01-18 15:52:40 +00:00
Roan Kattouw
70b5fdd2c9
API:
...
* Refactored ApiDelete to use the new dieUsageMsg() system
* Adding some more messages to ApiBase::$messageMap
* Also using dieUsageMsg() for API-related errors in ApiRollback
* Removing 'lo' prefix for ApiLogout as it doesn't have any parameters anyway
2008-01-18 14:34:14 +00:00
Roan Kattouw
bb7f8624d1
API:
...
* Removing action=render module (which was deprecated) in favor of action=parse
* Added prop parameter to action=parse so certain parts of the output can be left out
* action=parse&prop=text behaves pretty much exactly like action=render used to
2008-01-15 21:33:08 +00:00
Roan Kattouw
88b441f69a
Limiting image history listings to 500 for now. A hard-coded limit sucks, but an alternative isn't really available as the File handling code doesn't allow it (see also bug 12645). Besides, very few image histories are that long.
2008-01-15 21:09:44 +00:00
Roan Kattouw
bd143c2c28
Fixing hinky indentation in ApiQueryImageInfo.php
2008-01-15 20:45:58 +00:00