dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add broken-file-category for file links inside <gallery/>"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiDelete.php
diff --git
a/includes/api/ApiDelete.php
b/includes/api/ApiDelete.php
index
422524d
..
aea1048
100644
(file)
--- a/
includes/api/ApiDelete.php
+++ b/
includes/api/ApiDelete.php
@@
-61,8
+61,7
@@
class ApiDelete extends ApiBase {
$this->dieUsageMsg( $status[0] );
}
if ( !$status->isGood() ) {
$this->dieUsageMsg( $status[0] );
}
if ( !$status->isGood() ) {
- $errors = $status->getErrorsArray();
- $this->dieUsageMsg( $errors[0] ); // We don't care about multiple errors, just report one of them
+ $this->dieStatus( $status );
}
// Deprecated parameters
}
// Deprecated parameters
@@
-99,8
+98,8
@@
class ApiDelete extends ApiBase {
*
* @param $page Page|WikiPage object to work on
* @param $user User doing the action
*
* @param $page Page|WikiPage object to work on
* @param $user User doing the action
- * @param
$token String
delete token (same as edit token)
- * @param
$reason String|null
reason for the deletion. Autogenerated if NULL
+ * @param
string $token
delete token (same as edit token)
+ * @param
string|null $reason
reason for the deletion. Autogenerated if NULL
* @return Status|array
*/
public static function delete( Page $page, User $user, $token, &$reason = null ) {
* @return Status|array
*/
public static function delete( Page $page, User $user, $token, &$reason = null ) {