| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
action=block/action=unblock can not have the token required because when
using the gettoken param, the token param can not set.
Change-Id: I15317f16c06f150d29c1b17de76f41a6cfa84820
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Doxygen choke on text enclosed by '<' and '>' since it tries to
interpret them as HTML or XML elements. This patch adds double quotes
in includes/api/*.php files around the two following strings:
<Firstname>.<Lastname>@gmail.com
<Firstname><Lastname>@gmail.com
Which becomes:
"<Firstname>.<Lastname>@gmail.com"
"<Firstname><Lastname>@gmail.com"
Tested locally, it prevents doxygen 1.8.0 related warnings.
Change-Id: I36d82eb3fd4989ee3ffc65b0b527b83711d1ba69
|
|/
|
|
|
|
|
|
|
| |
* Moving setting of empty string to param description.
* Removing word "(optional)" from comment/reason param, because all not
required params are optional.
* Correct description of action=rollback for default comment.
Change-Id: Ifa5b60a7b55b216c43049cd81cb584b2e0518eed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added information about the properties of the results of API calls
to action=paraminfo, including information about "property groups":
what should the prop parameter be set to to get that property.
Uses the same format for types as parameters already do.
The output format of some modules doesn't fit this, so the result
properties for them weren't added, or only partially.
Partially implemented modules:
* expandtemplates:
parsetree is in its own tag
* protect, allusers, backlinks, deletedrevs, info, imageinfo,
logevents, querypage, recentchanges, revisions, searchinfo,
usercontribs, userinfo, users, watchlist, upload:
response with partially complex structure
Not implemented modules:
* feedcontributions, feedwatchlist, opensearch, rds:
non-standard reponse
* help:
error is normal response; not very useful for automated tools anyway
* paraminfo, parse, pageprops, siteinfo, userrights:
response with complex structure
Change-Id: Iff2a9bef79f994e73eef3062b4dd5461bff968ab
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add some calls to Database::timestamp
Change some calls from Database::strencode to
Database::addQuotes to avoid ' in raw sql
Remove ' from ints in raw sql
Rename some vars to avoid duplicate names
Change-Id: I63f5602fa968f969a42932902a3ccc45fc54b432
|
|/
|
|
|
|
|
|
| |
I know there's no second parameter to WikiPage::newFromID(), but this will change soon.
This follows-up I098dd36619fff3610be6894037220d3472b809d5.
Change-Id: Ic28b7e05db51e55a5f49fed70c042ba11e4d97fe
|
|
|
|
|
|
|
|
|
| |
per pageid
Move the possibles errors set by ApiBase::getTitleOrPageId to
ApiBase::getTitleOrPageIdErrorMessages and remove it from used modules
Change-Id: If037e04665d2524c1f2476bc7996d9573753a4b8
|
|
|
|
| |
Change-Id: I098dd36619fff3610be6894037220d3472b809d5
|
|
|
|
|
|
|
| |
* Use WikiPage::newFromID() directly instead of Title::newFromID() (change pending review to improve it)
* Directly load the data from the master when creating a page from its name, it avoids a second database query when calling $this->getLatest() in WikiPage::doUpdateRestrictions()
Change-Id: I993d087961c0ef41a2e3f8d949922d3d30ca1fde
|
|
|
|
| |
Change-Id: I01802dde2fba9510cbdf23522ddac59f36a93960
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
into WikiPage::doUpdateRestrictions(); older methods still work for backward compatibility, but marked Title::updateTitleProtection() as deprecated and for removal in 1.20 since no extension calls it
* Removed permissions check from WikiPage::doUpdateRestrictions() and left it for callers, resolves the todo from documentation
* Inverted $expiry and $reason parameter between WikiPage::doUpdateRestrictions() and WikiPage::updateRestrictions() for more consistency; WikiPage::doUpdateRestrictions() also requires all parameters to be passed
* WikiPage::doUpdateRestrictions() returns a Status object instead of bool for the older one; only possible error at the moment is a read-only database
* Updated core calls to these functions
* Made maintenance scripts using it simply protect all actions returned by Title::getRestrictionTypes() instead of hardcoded 'edit' and 'move'
* This also means that protect.php can be used to protect a non-existing page for creation
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106567
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/104445
|
|
|
|
|
|
|
|
| |
It's a parctice that dates back to 2006 when the API was first written, and frankly isn't covered by the coding conventions. Same thing with the docblocks, they're all copypasted with some bits changed and don't even make sense if you look at them in the genereated code docs.
I don't feel that any of us depend on this anymore (get a better IDE), so in the inerest of consistancy it's time we said goodbye to it.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103273
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/102847
|
|
|
|
|
|
|
| |
This will probably break something somewhere so when it does please yell at me on IRC and I'll fix it.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100905
|
|
|
|
|
|
|
| |
protected
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/94827
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/92398
|
|
|
|
|
|
|
| |
variable
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91147
|
|
|
|
|
|
|
| |
Since r88045
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/88416
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/84279
|
|
|
|
|
|
|
| |
Add since to ApiQueryQueryPage
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/78829
|
|
|
|
|
|
|
| |
outdated (dropped the old one in September '08)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/78827
|
|
|
|
|
|
|
| |
examples work immediately when posted
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/77192
|
|
|
|
|
|
|
| |
Added a needsToken() function, rather than calling getTokenSalt, which can throw silly errors due to dependencies on parameters
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/74098
|
|
|
|
|
|
|
| |
Add some braces
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/73377
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/70647
|
|
|
|
|
|
|
|
|
| |
getPossibleErrors in ApiBase
All but ApiQueryBacklinks
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/70474
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/70462
|
|
|
|
|
|
|
| |
API modules to PARAM_REQUIRED syntax
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/70461
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/69758
|
|
|
|
|
|
|
| |
59 Temple Place -> 51 Franklin Street
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/68353
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/67707
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/66893
|
|
|
|
|
|
|
|
|
|
|
| |
Couple of class comments
Normalisation of "." usage at end of lines (removed)
Normalisation of {prefix}parameter as per bug 23461
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/66232
|
|
|
|
|
|
|
| |
Would've like to refactor the $wgUser->*Watch — but I'm not sure if the hooks that come along with $articleObj->*Watch are ok.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64852
|
|
|
|
|
|
|
|
|
|
|
| |
Return null in getWatchlistValue if no change
Fixup unneccessary watch/unwatch calls
Remove useless unwatch from ApiUpload
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64291
|
|
|
|
|
|
|
|
|
| |
Remove the mutually exclusive else checks
Fix undefined on getWatchlistValue in ApiBase
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64267
|
|
|
|
|
|
|
|
|
|
|
| |
Deprecate old watch/unwatch parameters
Move generic watchlist stuff to ApiBase/getWatchlistValue (maybe needs renaming better?)
Tweak some braces in ApiEditPage
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64197
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64196
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64190
|
|
|
|
|
|
|
| |
Fix fail in Delete, Move, Rollback, Undelete
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64188
|
|
|
|
|
|
|
|
|
| |
Add unwatch to protect
Add unwatch/watch to Rollback and Undelete
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64184
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62883
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
salt, else false if no token required
Move sessionfailure (token validation checking) up a couple of levels
Part of bug 21991
Followup to r62482 and r62504
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62557
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
token requiringness/checking to ApiBase/Similar"
Move token requringness check to the ApiMain
Adding an exception if we're using "gettoken" (block/unblock)
Remove array( 'missingparam', 'token' ), from the getPossibleErrors of modules that set requireToken method to true
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62482
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62478
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62461
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62408
|