Return errors from WatchAction
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 13 Jun 2013 17:56:29 +0000 (13:56 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 20 Jun 2013 19:51:05 +0000 (15:51 -0400)
commitc94454687f04b6000ecfd4445e27f758adf48b7e
tree5b80c4b2b637ed6f80507a00ffdc6ff5f514c693
parent16faad812b47c9f55ef9ed932e6dad0cf8c194fd
Return errors from WatchAction

Currently, WatchAction::doWatch and WatchAction::doUnwatch return true
always. Let's have them return a status object instead.

This also cleans up the handling of Status objects in some of the API
modules.

Change-Id: I9dd9f0fd499c37f29fa12bcdb6142238a1f11e4d
RELEASE-NOTES-1.22
docs/hooks.txt
includes/actions/WatchAction.php
includes/api/ApiBase.php
includes/api/ApiCreateAccount.php
includes/api/ApiDelete.php
includes/api/ApiImport.php
includes/api/ApiProtect.php
includes/api/ApiUserrights.php
includes/api/ApiWatch.php