X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiRollback.php;h=70a2fec29b94f31045ba0b1613a9aeedc0b9c189;hb=df1a0cc446c0a66c1424b575497a0576db7abb73;hp=b9873f49ce09c3daeb7fd5ce32e6a58cfa70158d;hpb=c8543fe0bffafec21f2d2774ecc25cdfdcd44c84;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index b9873f49ce..70a2fec29b 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -47,7 +47,14 @@ class ApiRollback extends ApiBase { $pageObj = WikiPage::factory( $titleObj ); $summary = $params['summary']; $details = array(); - $retval = $pageObj->doRollback( $this->getRbUser(), $summary, $params['token'], $params['markbot'], $details, $this->getUser() ); + $retval = $pageObj->doRollback( + $this->getRbUser(), + $summary, + $params['token'], + $params['markbot'], + $details, + $this->getUser() + ); if ( $retval ) { // We don't care about multiple errors, just report one of them @@ -107,11 +114,14 @@ class ApiRollback extends ApiBase { public function getParamDescription() { return array( 'title' => 'Title of the page you want to rollback.', - 'user' => 'Name of the user whose edits are to be rolled back. If set incorrectly, you\'ll get a badtoken error.', - 'token' => "A rollback token previously retrieved through {$this->getModulePrefix()}prop=revisions", + 'user' => 'Name of the user whose edits are to be rolled back. If ' . + 'set incorrectly, you\'ll get a badtoken error.', + 'token' => 'A rollback token previously retrieved through ' . + "{$this->getModulePrefix()}prop=revisions", 'summary' => 'Custom edit summary. If empty, default summary will be used', 'markbot' => 'Mark the reverted edits and the revert as bot edits', - 'watchlist' => 'Unconditionally add or remove the page from your watchlist, use preferences or do not change watch', + 'watchlist' => 'Unconditionally add or remove the page from your watchlist, ' . + 'use preferences or do not change watch', ); } @@ -130,8 +140,8 @@ class ApiRollback extends ApiBase { public function getDescription() { return array( - 'Undo the last edit to the page. If the last user who edited the page made multiple edits in a row,', - 'they will all be rolled back' + 'Undo the last edit to the page. If the last user who edited the page made', + 'multiple edits in a row, they will all be rolled back.' ); } @@ -194,7 +204,8 @@ class ApiRollback extends ApiBase { public function getExamples() { return array( 'api.php?action=rollback&title=Main%20Page&user=Catrope&token=123ABC', - 'api.php?action=rollback&title=Main%20Page&user=217.121.114.116&token=123ABC&summary=Reverting%20vandalism&markbot=1' + 'api.php?action=rollback&title=Main%20Page&user=217.121.114.116&' . + 'token=123ABC&summary=Reverting%20vandalism&markbot=1' ); }