$this->getUser()
);
- if ( in_array( array( 'actionthrottledtext' ), $result ) ) {
+ if ( in_array( [ 'actionthrottledtext' ], $result ) ) {
throw new ThrottledError;
}
# NOTE: Permission errors already handled by Action::checkExecute.
- if ( $result == array( array( 'readonlytext' ) ) ) {
+ if ( $result == [ [ 'readonlytext' ] ] ) {
throw new ReadOnlyError;
}
->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() );