Merge "Log slow diffs"
[lhc/web/wiklou.git] / includes / actions / RollbackAction.php
index cc94fd3..d002da8 100644 (file)
@@ -53,7 +53,7 @@ class RollbackAction extends FormlessAction {
                        $this->getUser()
                );
 
-               if ( in_array( array( 'actionthrottledtext' ), $result ) ) {
+               if ( in_array( [ 'actionthrottledtext' ], $result ) ) {
                        throw new ThrottledError;
                }
 
@@ -80,7 +80,7 @@ class RollbackAction extends FormlessAction {
 
                # NOTE: Permission errors already handled by Action::checkExecute.
 
-               if ( $result == array( array( 'readonlytext' ) ) ) {
+               if ( $result == [ [ 'readonlytext' ] ] ) {
                        throw new ReadOnlyError;
                }
 
@@ -103,7 +103,7 @@ class RollbackAction extends FormlessAction {
                        ->parseAsBlock() );
 
                if ( $user->getBoolOption( 'watchrollback' ) ) {
-                       $user->addWatch( $this->page->getTitle(), WatchedItem::IGNORE_USER_RIGHTS );
+                       $user->addWatch( $this->page->getTitle(), User::IGNORE_USER_RIGHTS );
                }
 
                $this->getOutput()->returnToMain( false, $this->getTitle() );