Alex Z
93164e1dc8
fix param description, rollback token comes from prop=revisions
2008-12-26 04:13:47 +00:00
Roan Kattouw
8504bf43e2
API: Crusade against extract(). Left one extract() call alone in ApiQueryBacklinks.php because I don't have a better alternative for it.
2008-12-17 16:34:01 +00:00
Tim Starling
f48c6070df
Removed all instances of empty() where error suppression was not intended. Replaced with conversion to boolean, count() or empty string check as appropriate. Fixes a number of bugs due to incorrect conversion to boolean: suppressed edit summaries containing '0', ignored titles called '0', searches for '0' ignored, etc.
2008-10-25 14:04:43 +00:00
Chad Horohoe
15f016d1cb
Remove unused global declaration.
2008-09-11 02:03:34 +00:00
X!
6540ad122f
Fix action=rollback to now revert IPs too. Patch submitted by ST47.
2008-09-08 23:33:42 +00:00
Roan Kattouw
b8e624d367
API: Uniformizing descriptions for write modules
2008-09-07 19:12:41 +00:00
Alexandre Emsenhuber
087a9f70c5
WARNING: HUGE COMMIT
...
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Roan Kattouw
72b793a695
Remove deprecated ApiMain::scheduleCommit()
2008-05-18 20:15:56 +00:00
Siebrand Mazeland
79d5225c0e
* remove end of line whitespace
...
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Roan Kattouw
68bbfc12c0
Committing patch for bug 10931, which also fixes bug 13651. For a detailed explanation of what this commit does, see bug 10931 comment #24
2008-04-11 15:20:45 +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
491cc4a320
API: Making a bunch of state-changing modules require POST requests.
2008-01-18 20:43:59 +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
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
82165c9025
Whoops, removed one check too many.
2008-01-15 20:23:50 +00:00
Roan Kattouw
01a2386468
API:
...
* Introducing ApiBase::dieUsageMsg() function which outputs the error associated with a certain message key
* Updating rollback module to use dieUsageMsg(). Other modules will follow.
2008-01-15 20:21:16 +00:00
Victor Vasiliev
0495f90ebb
Revert r28215: incorrectly moved files
2007-12-06 18:33:18 +00:00
Victor Vasiliev
4e4cdf079e
Create includes/api/query for Query API and includes/api/edit for Edit API
2007-12-06 18:22:15 +00:00
Victor Vasiliev
88c6568f2b
Fix svn:eol-style and svn:keywords for files from merged APIEdit branch
2007-12-06 16:06:22 +00:00
Roan Kattouw
fd5a884b77
API: A cleaner implementation of r28057: this one also hides disabled modules from the list of possible actions on top of the help screen.
2007-12-03 15:52:27 +00:00
Victor Vasiliev
3a24c169ea
API:
...
* Hide edit modules from help if $wgEnableWriteAPI is disabled
* Fix help formatting on UsageException
2007-12-02 15:04:53 +00:00
Roan Kattouw
83035f0e0c
I'm clearly not fully awake
2007-12-02 14:45:35 +00:00
Roan Kattouw
6e2d0cd173
Oops, forgot a few.
2007-12-02 14:43:37 +00:00
Roan Kattouw
3bbe80f2b0
Oops, requestWriteMode() is in ApiMain, not ApiBase
2007-12-02 14:36:32 +00:00
Roan Kattouw
730bad3fb1
APIEDIT BRANCH MERGE: Adding apiedit modules: action={block,changerights,delete,move,protect,rollback,unblock,undelete} and list={blocks,deletedrevs}. $wgEnableWriteAPI must be explicitly set to enable these modules.
2007-12-02 14:24:07 +00:00
Daniel Cannon
8d41084f5b
Deleted trunk/phase3/includes/api/ApiRollback.php Mistakenly created in trunk, rather than in branch.
2007-07-05 17:13:56 +00:00
Roan Kattouw
d4ad5a8dbe
Reverting r23562: accidentally modified phase3 rather than
...
branch/apiedit
2007-06-29 20:02:26 +00:00
Roan Kattouw
1a2e663a40
* Separating UI code and DB code in Article::rollback()
...
* Adding API rollback functionality
2007-06-29 19:55:46 +00:00