39 public function run() {
40 if ( !$this->params[
'options'] ) {
44 $user = User::newFromId( $this->params[
'userId'] );
45 $user->load( $user::READ_EXCLUSIVE );
46 if ( !$user->getId() ) {
50 foreach ( $this->params[
'options'] as $name => $value ) {
51 $user->setOption( $name, $value );
54 $user->saveSettings();