return $this->mPage->doDeleteArticle( $reason, $suppress, $id, $commit, $error );
}
- public function doRollback( $fromP, $summary, $token, $bot, &$resultDetails ) {
- return $this->mPage->doRollback( $fromP, $summary, $token, $bot, $resultDetails );
+ public function doRollback( $fromP, $summary, $token, $bot, &$resultDetails, User $user = null ) {
+ global $wgUser;
+ $user = is_null( $user ) ? $wgUser : $user;
+ return $this->mPage->doRollback( $fromP, $summary, $token, $bot, $resultDetails, $user );
}
- public function commitRollback( $fromP, $summary, $bot, &$resultDetails ) {
- return $this->mPage->commitRollback( $fromP, $summary, $bot, $resultDetails );
+ public function commitRollback( $fromP, $summary, $bot, &$resultDetails, User $guser = null ) {
+ global $wgUser;
+ $guser = is_null( $guser ) ? $wgUser : $guser;
+ return $this->mPage->commitRollback( $fromP, $summary, $bot, $resultDetails, $guser );
}
// ****** B/C functions for static methods ( __callStatic is PHP>=5.3 ) ****** //
* OutputPage::showPermissionsErrorPage().
*/
public function doRollback(
- $fromP, $summary, $token, $bot, &$resultDetails, User $user = null
+ $fromP, $summary, $token, $bot, &$resultDetails, User $user
) {
- global $wgUser;
- $user = is_null( $user ) ? $wgUser : $user;
-
$resultDetails = null;
# Check permissions
* @param $resultDetails Array: contains result-specific array of additional values
* @param $guser User The user performing the rollback
*/
- public function commitRollback( $fromP, $summary, $bot, &$resultDetails, User $guser = null ) {
- global $wgUseRCPatrol, $wgUser, $wgContLang;
- $guser = is_null( $guser ) ? $wgUser : $guser;
+ public function commitRollback( $fromP, $summary, $bot, &$resultDetails, User $guser ) {
+ global $wgUseRCPatrol, $wgContLang;
$dbw = wfGetDB( DB_MASTER );