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 Special:MediaStatistics page for file type stats"
[lhc/web/wiklou.git]
/
includes
/
actions
/
RollbackAction.php
diff --git
a/includes/actions/RollbackAction.php
b/includes/actions/RollbackAction.php
index
617f1c9
..
76d70d7
100644
(file)
--- a/
includes/actions/RollbackAction.php
+++ b/
includes/actions/RollbackAction.php
@@
-39,6
+39,7
@@
class RollbackAction extends FormlessAction {
$details = null;
$request = $this->getRequest();
$details = null;
$request = $this->getRequest();
+ $user = $this->getUser();
$result = $this->page->doRollback(
$request->getVal( 'from' ),
$result = $this->page->doRollback(
$request->getVal( 'from' ),
@@
-97,6
+98,11
@@
class RollbackAction extends FormlessAction {
$new = Linker::revUserTools( $target );
$this->getOutput()->addHTML( $this->msg( 'rollback-success' )->rawParams( $old, $new )
->parseAsBlock() );
$new = Linker::revUserTools( $target );
$this->getOutput()->addHTML( $this->msg( 'rollback-success' )->rawParams( $old, $new )
->parseAsBlock() );
+
+ if ( $user->getBoolOption( 'watchrollback' ) ) {
+ $user->addWatch( $this->page->getTitle(), WatchedItem::IGNORE_USER_RIGHTS );
+ }
+
$this->getOutput()->returnToMain( false, $this->getTitle() );
if ( !$request->getBool( 'hidediff', false ) &&
$this->getOutput()->returnToMain( false, $this->getTitle() );
if ( !$request->getBool( 'hidediff', false ) &&